Skip to content

Commit c0bb55f

Browse files
committed
Fix CI script
1 parent 30d7ada commit c0bb55f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis-ci.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ elif [ "$TASK" = "codesmell" ]; then
6262
elif [ "$TASK" = "sanitize" ]; then
6363
# Run sanitized compile
6464
travis_fold start "make_sanitize"
65-
if make sanitize; then
65+
if ! make sanitize; then
6666
exit "$?"
6767
fi
6868
travis_fold end "make_sanitize"
6969
elif [ "$TASK" = "windows" ]; then
7070
travis_fold start "make_windows"
71-
if make windows; then
71+
if ! make windows; then
7272
exit "$?"
7373
fi
7474
make -C backends lua.dll
@@ -92,7 +92,7 @@ elif [ "$TASK" = "windows" ]; then
9292
else
9393
# Otherwise compile as normal
9494
travis_fold start "make"
95-
if make full; then
95+
if ! make full; then
9696
exit "$?"
9797
fi
9898
travis_fold end "make"

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ before_cache:
134134
before_install:
135135
# Travis clones with --branch, which omits tags. Since we use them for the version string at build time, fetch them
136136
- git pull --tags
137+
- printf "This is %s on %s\n" "$(git describe)" "$TRAVIS_OS_NAME"
137138
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
138139
# 'brew install' sometimes returns non-zero for some arcane reason. Executing 'true' resets the exit code and allows Travis to continue building...
139140
# Travis seems to have Python 2.7 installed by default, which for some reason prevents pkg-config from reading python3.pc

0 commit comments

Comments
 (0)