From 87f93044c6375fc0ce3ccf0296b900f0ce928c75 Mon Sep 17 00:00:00 2001 From: Ashley Teoh Date: Tue, 3 Apr 2018 18:57:31 -0400 Subject: [PATCH 1/2] only check links if build is triggered by cron --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7068841022..9e9ba912e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,7 +72,7 @@ script: if [[ $GROUP == docs ]]; then EXIT_STATUS=0 make -C docs/ html || EXIT_STATUS=$? - make -C docs/ linkcheck || EXIT_STATUS=$? + 'if [[ $TRAVIS_EVENT_TYPE == cron ]]; then make -C docs/ linkcheck || EXIT_STATUS=$?; fi' pytest --nbval --current-env docs || EXIT_STATUS=$? exit $EXIT_STATUS fi From ad59f707dbfb928baedec443de76b73c1b247582 Mon Sep 17 00:00:00 2001 From: Ashley Teoh Date: Tue, 3 Apr 2018 19:05:45 -0400 Subject: [PATCH 2/2] formatting --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9e9ba912e9..5d30956d1d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,7 +72,11 @@ script: if [[ $GROUP == docs ]]; then EXIT_STATUS=0 make -C docs/ html || EXIT_STATUS=$? - 'if [[ $TRAVIS_EVENT_TYPE == cron ]]; then make -C docs/ linkcheck || EXIT_STATUS=$?; fi' + + if [[ $TRAVIS_EVENT_TYPE == cron ]]; then + make -C docs/ linkcheck || EXIT_STATUS=$?; + fi + pytest --nbval --current-env docs || EXIT_STATUS=$? exit $EXIT_STATUS fi