Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2019-05-17 19:13:34 +0300
committerMatthias Held <ilovemilk@wusa.io>2019-05-17 19:13:34 +0300
commit05952732921d4ab6b4bd50d3551871b713188126 (patch)
treeba49a121056bc1676527f488ef3a417a9f09ecc8
parentdb713721f15b0215a24873e0bec0b4ed4819d902 (diff)
add stages
-rw-r--r--.travis.yml27
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