From d682a8df9a151538d70c8a7a23a68636284b1b94 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Tue, 26 Mar 2019 01:18:38 +0000 Subject: Only run $CXX version when necessary --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index df4a97a..ab047ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -167,7 +167,7 @@ before_install: #Report the compiler versions - $CC --version #OS X uses something other than $CXX variable - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then $CXX --version; fi + - if [ "$TRAVIS_OS_NAME" == "linux" -a \( "$TASK" = "compile" -o "$TASK" = "sanitize" \) ]; then $CXX --version; fi - if [ "$TASK" == "spellintian" -o "$TASK" == "spellintian-duplicates" ]; then wget "http://archive.ubuntu.com/ubuntu/pool/main/l/lintian/lintian_2.5.104_all.deb"; sudo dpkg -i lintian_*.deb; sudo apt-get install -f -y; fi # Install a later lintian after_script: -- cgit v1.2.3