浏览代码

travis ci php语法检查

littlehz 9 年之前
父节点
当前提交
dd98fcb0f3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .travis.yml

+ 1 - 0
.travis.yml

@@ -23,6 +23,7 @@ before_script:
   - cd tests && ../vendor/bin/codecept build
 
 script:
+  - find ../ -path '../vendor' -prune -o -type f -iname "*.php" -print0 | xargs -0 -n1 php -l
   - ../vendor/bin/codecept run
 matrix:
   fast_finish: true