diff options
author | Matthias Held <ilovemilk@wusa.io> | 2019-05-17 19:13:34 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2019-05-17 19:13:34 +0300 |
commit | 05952732921d4ab6b4bd50d3551871b713188126 (patch) | |
tree | ba49a121056bc1676527f488ef3a417a9f09ecc8 | |
parent | db713721f15b0215a24873e0bec0b4ed4819d902 (diff) |
add stages
-rw-r--r-- | .travis.yml | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index b9c2626..28fb8bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,18 +27,25 @@ before_install: - ./occ app:enable $APP_NAME - ./occ app:list -script: - - cd apps/$APP_NAME/ +jobs: + include: + - stage: test + script: + - cd apps/$APP_NAME/ + + # Test the app + - sh -c "if [ '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi" + - cd ../../ + - sh -c "if [ '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi" + - sh -c "if [ '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi" + - cd apps/$APP_NAME/ - # Test the app - - sh -c "if [ '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi" - - cd ../../ - - sh -c "if [ '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi" - - sh -c "if [ '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi" - - cd apps/$APP_NAME/ + # Run phpunit tests + - sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi" - # Run phpunit tests - - sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi" +stages: + - test + - build after_success: # Create coverage report |