From f894273f50513bb5a2c31816da554b2ff2bfd914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dario=20Vladovi=C4=87?= Date: Sun, 14 Jun 2020 06:25:18 +0200 Subject: [PATCH] Refactor travis script (#754) --- .travis.sh | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.travis.sh b/.travis.sh index d778e1c0..bc19f033 100755 --- a/.travis.sh +++ b/.travis.sh @@ -3,28 +3,23 @@ set -e # This build script only builds mac or linux right now, for CI. WREN_WD="projects/make" -if [ -n "$WREN_TARGET_MAC" ] -then +if [ -n "$WREN_TARGET_MAC" ]; then WREN_WD="projects/make.mac" fi -WREN_PY="python3" -if [ -n "$WREN_PY_BINARY" ] -then - WREN_PY="$WREN_PY_BINARY" -fi +WREN_PY=${WREN_PY_BINARY:-python3} echo "using working directory '$WREN_WD' ..." echo "using python binary '$WREN_PY' ..." -cd "$WREN_WD" && make config=debug_64bit-no-nan-tagging -cd ../../ && $WREN_PY ./util/test.py --suffix=_d +make -C $WREN_WD config=debug_64bit-no-nan-tagging +$WREN_PY ./util/test.py --suffix=_d -cd "$WREN_WD" && make config=debug_64bit -cd ../../ && $WREN_PY ./util/test.py --suffix=_d +make -C $WREN_WD config=debug_64bit +$WREN_PY ./util/test.py --suffix=_d -cd "$WREN_WD" && make config=release_64bit-no-nan-tagging -cd ../../ && $WREN_PY ./util/test.py +make -C $WREN_WD config=release_64bit-no-nan-tagging +$WREN_PY ./util/test.py -cd "$WREN_WD" && make config=release_64bit -cd ../../ && $WREN_PY ./util/test.py +make -C $WREN_WD config=release_64bit +$WREN_PY ./util/test.py