From 3aa88de2a2a556b62ec912db4364ea302b3ffe8a Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Wed, 14 Mar 2018 16:20:26 +0000 Subject: [PATCH 1/3] Remove final semicolon to report docs-build error. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f2a9ae8469..6dea60002b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -139,7 +139,7 @@ script: echo 'image.cmap : viridis' >> $MPL_RC_DIR/matplotlibrc; cd $INSTALL_DIR/docs/iris; echo `make clean html`; - make doctest; + make doctest fi # Split the organisation out of the slug. See https://stackoverflow.com/a/5257398/741316 for description. From f8d1b2388f3d2f4382cb55b27052eaacf379d62a Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Thu, 15 Mar 2018 11:01:15 +0000 Subject: [PATCH 2/3] Change solution to : remove backticks around command. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6dea60002b..14f77c566f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -138,8 +138,8 @@ script: echo 'backend : agg' > $MPL_RC_DIR/matplotlibrc; echo 'image.cmap : viridis' >> $MPL_RC_DIR/matplotlibrc; cd $INSTALL_DIR/docs/iris; - echo `make clean html`; - make doctest + make clean html; + make doctest; fi # Split the organisation out of the slug. See https://stackoverflow.com/a/5257398/741316 for description. From 0b19799c0b18a1147ec58667e1bc959824a7474d Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Thu, 15 Mar 2018 12:46:38 +0000 Subject: [PATCH 3/3] Use '&&' for abort on inner command failure. --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 14f77c566f..382cab716a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -138,8 +138,7 @@ script: echo 'backend : agg' > $MPL_RC_DIR/matplotlibrc; echo 'image.cmap : viridis' >> $MPL_RC_DIR/matplotlibrc; cd $INSTALL_DIR/docs/iris; - make clean html; - make doctest; + make clean html && make doctest; fi # Split the organisation out of the slug. See https://stackoverflow.com/a/5257398/741316 for description.