Skip to content

Commit 077573e

Browse files
committed
CI: Fail Quick in Bash Scripts
1 parent b7ccea3 commit 077573e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/travis_before_install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set -x # Show which command is being run
2+
set -e # abort on errors
23

34
case $TRAVIS_OS_NAME in
45
linux)
@@ -45,4 +46,4 @@ echo "suppressStreamLogging = True" >> $HOME/.config/yt/ytrc
4546
cat $HOME/.config/yt/ytrc
4647
cp tests/matplotlibrc .
4748

48-
set +x # Do not show which command is being run (Travis default)
49+
set +x # Do not show which command is being run (Travis default)

tests/travis_install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set -x # Show which command is being run
2+
set -e # abort on errors
23

34
echo "Travis build stage: $TRAVIS_BUILD_STAGE_NAME"
45

@@ -42,4 +43,4 @@ fi
4243
# Step 3: install yt
4344
$PIP install -e .
4445

45-
set +x # Do not show which command is being run (Travis default)
46+
set +x # Do not show which command is being run (Travis default)

0 commit comments

Comments
 (0)