Skip to content

Commit 2546ba6

Browse files
authored
Merge pull request #219 from NOSALRO/scripts_exit
Automatic exit of scripts on failure
2 parents 134e3a3 + cfa886b commit 2546ba6

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

ci/install_dart_latest.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set -e
2+
13
# Select Compiler
24
if [ "$COMPILER" = "gcc" ]; then
35
export CC=/usr/bin/gcc && export CXX=/usr/bin/g++

ci/install_magnum.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set -e
2+
13
# Select Compiler
24
if [ "$COMPILER" = "gcc" ]; then
35
export CC=/usr/bin/gcc && export CXX=/usr/bin/g++

ci/install_packages.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
set -e
2+
13
sudo apt-get -qq update
24
sudo apt-get -y install software-properties-common mlocate
35
sudo apt-add-repository -y ppa:dartsim/ppa
46
sudo apt-get -qq update
57
sudo apt-get install -y --no-install-recommends build-essential cmake pkg-config git libeigen3-dev libccd-dev libfcl-dev libboost-regex-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libbullet-dev libode-dev liboctomap-dev libtinyxml-dev libtinyxml2-dev liburdfdom-dev liburdfdom-headers-dev python3-pip python3-numpy libpython3-dev libxi-dev libxmu-dev freeglut3-dev libopenscenegraph-dev libassimp-dev libfmt-dev pybind11-dev
68

7-
sudo ln -s /usr/bin/python3 /usr/bin/python
9+
if [ ! -f /usr/bin/python ]; then
10+
sudo ln -s /usr/bin/python3 /usr/bin/python
11+
fi
812

913
if [ "$MAGNUM_GUI" = "ON" ]; then
1014
sudo apt-get install -y --no-install-recommends libopenal-dev libglfw3-dev libsdl2-dev libdevil-dev libpng-dev libfaad-dev libfreetype6-dev libglm-dev

scripts/install_osx.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set -x
1+
set -e
22

33
CLEAN=0
44

scripts/install_ubuntu.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set -e
2+
13
CLEAN=0
24

35
CLEAN=${1:-$CLEAN}

0 commit comments

Comments
 (0)