Skip to content

Commit eb7db21

Browse files
committedMar 20, 2016
Tweak travis script
Exit if cd fails and don't insert '\' in string.
1 parent 2ce02c9 commit eb7db21

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed
 

Diff for: ‎util/travis/script.sh

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22

33
if [[ $PLATFORM == "Unix" ]]; then
44
mkdir -p travisbuild
5-
cd travisbuild
6-
CMAKE_FLAGS='-DCMAKE_BUILD_TYPE=Debug \
7-
-DRUN_IN_PLACE=TRUE \
8-
-DENABLE_GETTEXT=TRUE'
5+
cd travisbuild || exit 1
Has conversations. Original line has conversations.
6+
CMAKE_FLAGS=''
97
# Clang builds with FreeType fail on Travis
108
if [[ $CC == "clang" ]]; then
119
CMAKE_FLAGS+=' -DENABLE_FREETYPE=FALSE'
1210
fi
1311
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
1412
CMAKE_FLAGS+=' -DCUSTOM_GETTEXT_PATH=/usr/local/opt/gettext'
1513
fi
16-
cmake $CMAKE_FLAGS ..
14+
cmake -DCMAKE_BUILD_TYPE=Debug \
15+
-DRUN_IN_PLACE=TRUE \
16+
-DENABLE_GETTEXT=TRUE \
17+
$CMAKE_FLAGS ..
1718
make -j2
1819
echo "Running unit tests."
1920
../bin/minetest --run-unittests && exit 0
@@ -34,9 +35,9 @@ elif [[ $PLATFORM == Win* ]]; then
3435
export EXISTING_MINETEST_DIR=$OLDDIR
3536
export NO_MINETEST_GAME=1
3637
if [[ $PLATFORM == "Win32" ]]; then
37-
$OLDDIR/util/buildbot/buildwin32.sh travisbuild && exit 0
38+
"$OLDDIR/util/buildbot/buildwin32.sh" travisbuild && exit 0
3839
elif [[ $PLATFORM == "Win64" ]]; then
39-
$OLDDIR/util/buildbot/buildwin64.sh travisbuild && exit 0
40+
"$OLDDIR/util/buildbot/buildwin64.sh" travisbuild && exit 0
4041
fi
4142
else
4243
echo "Unknown platform \"${PLATFORM}\"."

0 commit comments

Comments
 (0)
Please sign in to comment.