You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #782: Check if variable=yes instead of if var is set in travis.sh
34debf7 Modify .travis.yml to explictly pass no in env vars instead of setting to nothing (Elichai Turkel)
ef37761 Change travis.sh to check if variables are equal to yes instead of not-empty. Before this, setting `VALGRIND=wat` was considered as true, and to make it evaluate as false you had to unset the variable `VALGRIND=` but not it checks if `VALGRIND=yes` and if it's not `yes` then it's evaluated to false (Elichai Turkel)
Pull request description:
ACKs for top commit:
real-or-random:
ACK 34debf7
jonasnick:
ACK 34debf7
Tree-SHA512: 91becfbc9cb7587ee55b2bceb604ea0aed8860990d63a5f414b11db92180c090ea8bcc048c2fb67a094e892138e3be46f00562bf78b7c3369232457289cde447
Copy file name to clipboardExpand all lines: contrib/travis.sh
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -24,16 +24,16 @@ if [ -n "$BUILD" ]
24
24
then
25
25
make -j2 "$BUILD"
26
26
fi
27
-
if [ -n"$VALGRIND" ]
27
+
if [ "$VALGRIND"="yes" ]
28
28
then
29
29
make -j2
30
30
# the `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (http://valgrind.org/docs/manual/manual-core.html)
31
31
valgrind --error-exitcode=42 ./tests 16
32
32
valgrind --error-exitcode=42 ./exhaustive_tests
33
33
fi
34
-
if [ -n"$BENCH" ]
34
+
if [ "$BENCH"="yes" ]
35
35
then
36
-
if [ -n"$VALGRIND" ]
36
+
if [ "$VALGRIND"="yes" ]
37
37
then
38
38
# Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool
0 commit comments