]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
.travis.yml: detect "$TRAVIS_EVENT_TYPE" = "cron"
authorPrzemyslaw Skibinski <inikep@gmail.com>
Thu, 16 Feb 2017 11:29:08 +0000 (12:29 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Thu, 16 Feb 2017 11:29:08 +0000 (12:29 +0100)
.travis.yml

index 885e4517acceacd75c90167e16856abc0722083a..b87d7d4766c8692aa33291796496e3f0366b1a31 100644 (file)
@@ -169,7 +169,13 @@ matrix:
 
 script:
   - JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:')
-  #  dev => normal tests;  other feature branches => short tests (number > 11)
-  - if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ $JOB_NUMBER -gt 11 ] || [ "$TRAVIS_BRANCH" = "dev" ] && [ "$TRAVIS_BRANCH" != "master" ]; then sh -c "$Cmd"; fi
-  #  master => long tests, as this is the final step towards a Release
-  - if [ "$TRAVIS_BRANCH" = "master" ]; then FUZZERTEST=-T10mn sh -c "$Cmd"; fi
+
+    #  cron & master => long tests, as this is the final step towards a Release
+  - if [ "$TRAVIS_EVENT_TYPE" = "cron" ] || [ "$TRAVIS_BRANCH" = "master" ]; then
+        FUZZERTEST=-T10mn sh -c "$Cmd" || travis_terminate 1;
+    else
+        #  dev => normal tests;  other feature branches => short tests (number > 11)
+        if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ $JOB_NUMBER -gt 11 ] || [ "$TRAVIS_BRANCH" = "dev" ]; then
+            sh -c "$Cmd" || travis_terminate 1;
+        fi
+    fi