From 49cd47681b161bb44aadf1da7b1284fea5f83621 Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Thu, 15 Mar 2018 16:45:43 +0100 Subject: [PATCH 1/2] travis: Enable submission to codecov --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2e89ebf..6a86b1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,8 @@ install: - docker build --tag=britney . script: - - docker run britney /bin/sh -c "export CI=true ; ci/run-everything-and-upload-to-codecov.io.sh" + # https://docs.codecov.io/docs/testing-with-docker + - ci_env=$(bash <(curl -s https://codecov.io/env)) ; docker run $ci_env britney /bin/sh -c "export CI=true ; ci/run-everything-and-upload-to-codecov.io.sh" #notifications: # email: false From 2e627f9be58a442d7fb02739cf5164f58c5be0a2 Mon Sep 17 00:00:00 2001 From: Paul Gevers Date: Thu, 15 Mar 2018 16:49:25 +0100 Subject: [PATCH 2/2] travis: Disable one live data test to prevent time outs --- ci/run-everything-and-upload-to-codecov.io.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/run-everything-and-upload-to-codecov.io.sh b/ci/run-everything-and-upload-to-codecov.io.sh index 8e00678..13de507 100755 --- a/ci/run-everything-and-upload-to-codecov.io.sh +++ b/ci/run-everything-and-upload-to-codecov.io.sh @@ -10,7 +10,11 @@ echo britney2-tests/bin/runtests ./ci/britney-coverage.sh britney2-tests/t test-out || err=$? echo echo -britney2-tests/bin/runtests ./britney.py britney2-tests/live-data test-out-live-data-1 live-2011-12-13 || err=$? +if [ -n "$CI" ] ; then + echo skipping live-2011-12-13 to prevent time out on Travis of the whole test suite +else + britney2-tests/bin/runtests ./britney.py britney2-tests/live-data test-out-live-data-1 live-2011-12-13 || err=$? +fi echo britney2-tests/bin/runtests ./britney.py britney2-tests/live-data test-out-live-data-2 live-2011-12-20 || err=$? echo