Browse Source

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 năm trước cách đây
mục cha
commit
38d2dd2e20
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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: