From 7625f7df11323e14fcbe9727c338c74c03f384eb Mon Sep 17 00:00:00 2001 From: JohnHolmesII Date: Fri, 5 Apr 2019 20:17:54 -0700 Subject: [PATCH] Correct travis deploy behavior (bug). cd returns an error code, thus overwriting '0' --- .travis/build-linux.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis/build-linux.bash b/.travis/build-linux.bash index ae80244d22..5944fbcb6e 100644 --- a/.travis/build-linux.bash +++ b/.travis/build-linux.bash @@ -28,8 +28,8 @@ fi cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_LLVM_SUBMODULE=OFF -DLLVM_DIR=llvmlibs/lib/cmake/llvm/ -DUSE_NATIVE_INSTRUCTIONS=OFF -G Ninja -ninja +ninja; build_status=$?; cd .. # If it compiled succesfully let's deploy -if [ $? -eq 0 ] && [ -n "$GITHUB_TOKEN" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then /bin/bash -ex .travis/deploy-linux.bash ; fi +if [ $build_status -eq 0 ] && [ -n "$GITHUB_TOKEN" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then /bin/bash -ex .travis/deploy-linux.bash ; fi