Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 781e3c2

Browse files
committed
ci: Error out of test script on first error.
1 parent 331d6ef commit 781e3c2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ install:
142142
# Install matplotlib
143143
pip install -ve .
144144
145-
script: source ci/travis/test_script.sh
145+
script: ci/travis/test_script.sh
146146

147147
before_cache:
148148
- rm -rf $HOME/.cache/matplotlib/tex.cache

ci/travis/test_script.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /bin/bash
22

3+
set -e
4+
35
# This script is meant to be called by the "script" step defined in
46
# .travis.yml. See http://docs.travis-ci.com/ for more details.
57
# The behavior of the script is controlled by environment variabled defined
@@ -34,7 +36,6 @@ else
3436
# We don't build the LaTeX docs here, so linkchecker will complain
3537
touch build/html/Matplotlib.pdf
3638
# Linkchecker only works with python 2.7 for the time being
37-
deactivate
3839
source ~/virtualenv/python2.7/bin/activate
3940
pip install pip --upgrade
4041
# linkchecker is currently broken with requests 2.10.0 so force an earlier version

0 commit comments

Comments
 (0)