aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominic Jodoin <dominic@travis-ci.com>2018-12-12 00:01:07 -0500
committerGitHub <noreply@github.com>2018-12-12 00:01:07 -0500
commit3b1f43c2e7a5ce49792f240488a9fcb7fe92d36c (patch)
tree20d80ed8fd42162cad45fb5d8a4c58a8c5582597
parentfc0f92676865ed3347ce3d7cecd64f51fa2bfe50 (diff)
downloadgoogletest-3b1f43c2e7a5ce49792f240488a9fcb7fe92d36c.tar.gz
googletest-3b1f43c2e7a5ce49792f240488a9fcb7fe92d36c.tar.bz2
googletest-3b1f43c2e7a5ce49792f240488a9fcb7fe92d36c.zip
Use if statements
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 13b861ef..8ea55db5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -53,8 +53,8 @@ before_install:
sudo apt-get -y -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists update
sudo apt-get install --download-only -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists g++-4.9 clang-3.9
fi
- - [ "$TRAVIS_OS_NAME" != "osx" ] && sudo apt-get install --no-download -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists g++-4.9 clang-3.9
- - [ "$TRAVIS_OS_NAME" != "osx" ] && sudo chown -R $USER ${TRAVIS_BUILD_DIR}/apt-cache
+ - if [ "$TRAVIS_OS_NAME" != "osx" ]; then sudo apt-get install --no-download -o Dir::cache=${TRAVIS_BUILD_DIR}/apt-cache -o Dir::State::Lists=${TRAVIS_BUILD_DIR}/apt-cache/lists g++-4.9 clang-3.9; fi
+ - if [ "$TRAVIS_OS_NAME" != "osx" ]; then sudo chown -R $USER ${TRAVIS_BUILD_DIR}/apt-cache; fi
# These are the install and build (script) phases for the most common entries in the matrix. They could be included
# in each entry in the matrix, but that is just repetitive.