浏览代码

Travis: Remove .git dirs from vendor/ dir when deploying

See https://github.com/picocms/Pico/issues/289#issuecomment-159722672 - thanks to @joshas for spotting
Daniel Rudolf 9 年之前
父节点
当前提交
38d2dd2e20
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .travis.yml

+ 1 - 0
.travis.yml

@@ -19,6 +19,7 @@ script:
 before_deploy:
   - composer install
   - composer dump-autoload --optimize
+  - find vendor/ -type d -path 'vendor/*/*/.git' -print0 | xargs -0 rm -rf
   - tar -czf "pico-release-$TRAVIS_TAG.tar.gz" .htaccess README.md CHANGELOG.md CONTRIBUTING.md composer.json composer.lock LICENSE config content-sample lib plugins themes vendor index.php
 
 deploy: