Skip to content

Commit

Permalink
Correct travis deploy behavior (bug).
Browse files Browse the repository at this point in the history
cd returns an error code, thus overwriting '0'
  • Loading branch information
JohnHolmesII authored and Nekotekina committed Apr 6, 2019
1 parent 8dbf263 commit 7625f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis/build-linux.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7625f7d

Please sign in to comment.