Skip to content

Commit

Permalink
Merge pull request #219 from NOSALRO/scripts_exit
Browse files Browse the repository at this point in the history
Automatic exit of scripts on failure
  • Loading branch information
costashatz authored Aug 26, 2024
2 parents 134e3a3 + cfa886b commit 2546ba6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ci/install_dart_latest.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -e

# Select Compiler
if [ "$COMPILER" = "gcc" ]; then
export CC=/usr/bin/gcc && export CXX=/usr/bin/g++
Expand Down
2 changes: 2 additions & 0 deletions ci/install_magnum.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -e

# Select Compiler
if [ "$COMPILER" = "gcc" ]; then
export CC=/usr/bin/gcc && export CXX=/usr/bin/g++
Expand Down
6 changes: 5 additions & 1 deletion ci/install_packages.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
set -e

sudo apt-get -qq update
sudo apt-get -y install software-properties-common mlocate
sudo apt-add-repository -y ppa:dartsim/ppa
sudo apt-get -qq update
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

sudo ln -s /usr/bin/python3 /usr/bin/python
if [ ! -f /usr/bin/python ]; then
sudo ln -s /usr/bin/python3 /usr/bin/python
fi

if [ "$MAGNUM_GUI" = "ON" ]; then
sudo apt-get install -y --no-install-recommends libopenal-dev libglfw3-dev libsdl2-dev libdevil-dev libpng-dev libfaad-dev libfreetype6-dev libglm-dev
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_osx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set -x
set -e

CLEAN=0

Expand Down
2 changes: 2 additions & 0 deletions scripts/install_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -e

CLEAN=0

CLEAN=${1:-$CLEAN}
Expand Down

0 comments on commit 2546ba6

Please sign in to comment.