diff --git a/.travis.yml b/.travis.yml
index 6a8e6835cfe1ae489acf2520098d525c384a04d1..549fc05dab05c74673dd854a1d412cf88f2ec003 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,7 +24,8 @@ before_install:
 install:
   - "$BUILD_CMD"
 script:
-  - test $RUN_TESTS = true \
-    && cd test \
-    && ln -s $(pwd)/../etc/log4j.properties . \
-    && ./RunDefaultUnitTests.sh | tee test.log && [ -z "$(grep 'Failures:\s[^0]\|Errors:\s[^0]' test.log)" ] 
+  - if [ "$RUN_TESTS" == "true" ]; then
+      cd test;
+      ln -s $(pwd)/../etc/log4j.properties .;
+      ./RunDefaultUnitTests.sh | tee test.log && [ -z "$(grep 'Failures:\s[^0]\|Errors:\s[^0]' test.log)" ];
+    fi