Move `set -e` to `before_script`
This commit is contained in:
Родитель
c8b0ed5517
Коммит
474a2554f6
|
@ -20,14 +20,13 @@ cache:
|
|||
- validation/frameworks
|
||||
|
||||
before_script:
|
||||
- set -e
|
||||
- phpenv config-rm xdebug.ini
|
||||
- if find . -name "*.php" -path "./src/*" -path "./experiments/*" -path "./tools/*" -path "./syntax-visualizer/server/src/*" -exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
|
||||
- if find . -name "*.php" -path "./tests/*" -path "./validation/*" -maxdepth 0 --exec php -l {} 2>&1 \; | grep "syntax error, unexpected"; then exit 1; fi
|
||||
|
||||
script:
|
||||
- |
|
||||
set -e
|
||||
|
||||
if [[ $VALIDATION = true ]]; then
|
||||
phpunit --testsuite validation
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче