瀏覽代碼

Travis: Don't test vendor PHP files

Daniel Rudolf 9 年之前
父節點
當前提交
d503cea954
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .travis.yml

+ 1 - 1
.travis.yml

@@ -14,7 +14,7 @@ matrix:
   fast-finish: true
 
 script:
-  - find . -type f -name '*.php' -print0 | xargs -0 -I file php -l file > /dev/null
+  - find . -not \( -path './vendor' -prune \) -type f -name '*.php' -print0 | xargs -0 -I file php -l file > /dev/null
 
 before_deploy:
   - composer install