From 029146566e8f14dac326c220975696a2bccc0f53 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Tue, 23 Apr 2019 09:42:10 +0200 Subject: [PATCH 1/3] Detect cron builds on Travis CI --- test/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/helpers.py b/test/helpers.py index aa4b0a98..3a9b5234 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -85,7 +85,8 @@ def skip_windows(message="This test is not supported on Windows"): def slow_test(f): @functools.wraps(f) def wrapper(*args, **kwargs): - if 'CI' in os.environ and 'RUN_SLOW' not in os.environ: + if ('CI' in os.environ and 'RUN_SLOW' not in os.environ and + os.environ.get('TRAVIS_EVENT_TYPE') != 'cron'): raise unittest.SkipTest("Slow test skipped on CI run") return f(*args, **kwargs) return wrapper From 552d9f0215b3b2360d3af76ddee1d45b06fd70eb Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Tue, 23 Apr 2019 09:44:42 +0200 Subject: [PATCH 2/3] Specify travis_wait --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2d0c501e..9b39aa14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ matrix: - git checkout $TRAVIS_BRANCH - git reset --hard $TRAVIS_COMMIT script: - - "cd test && python3 -m nose --rednose --verbose" + - "cd test && travis_wait 30 python3 -m nose --rednose --verbose" env: PQCLEAN_ONLY_DIFF: 1 addons: @@ -41,7 +41,7 @@ matrix: - ln -s /usr/local/bin/gcc-8 /usr/local/bin/gcc - gcc --version script: - - "cd test && python3 -m nose --rednose --verbose" + - "cd test && travis_wait 30 python3 -m nose --rednose --verbose" cache: pip From 1a6f441f3686b81fd9c0bbe93f5455776398b393 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Tue, 23 Apr 2019 10:40:14 +0200 Subject: [PATCH 3/3] add comment about travis-wait --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9b39aa14..8336d199 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ matrix: - git checkout $TRAVIS_BRANCH - git reset --hard $TRAVIS_COMMIT script: + # Use travis-wait to allow slower tests to run - "cd test && travis_wait 30 python3 -m nose --rednose --verbose" env: PQCLEAN_ONLY_DIFF: 1 @@ -41,6 +42,7 @@ matrix: - ln -s /usr/local/bin/gcc-8 /usr/local/bin/gcc - gcc --version script: + # Use travis-wait to allow slower tests to run - "cd test && travis_wait 30 python3 -m nose --rednose --verbose"