diff options
author | Matthias Held <ilovemilk@wusa.io> | 2019-05-17 20:05:43 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2019-05-17 20:05:43 +0300 |
commit | 1cb8baeb6d2c07ff8e5b0905adf21780bd4c1319 (patch) | |
tree | f403a1a66e1226f0d90a8570b78bf46f55d923d1 | |
parent | 68d7281b97d2ce30f051345e49b077a345c322cb (diff) |
add stages order
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 7b5c34d..a828d70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ before_install: jobs: include: - stage: test - script: "cd apps/$APP_NAME/" + script: cd apps/$APP_NAME/ # Test the app script: sh -c "if [ '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi" script: cd ../../ @@ -32,6 +32,14 @@ jobs: script: cd apps/$APP_NAME/ # Run phpunit tests script: sh -c "if [ '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi" + - stage: build + script: echo "Build" + +stages: + - test + - build + - name: deploy + if: tag =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?$ after_success: # Create coverage report |