aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPeter Newman <peternewman@users.noreply.github.com>2019-03-26 01:18:38 +0000
committerGitHub <noreply@github.com>2019-03-26 01:18:38 +0000
commitd682a8df9a151538d70c8a7a23a68636284b1b94 (patch)
treedefba2cdd559d4d83a1392244876139cf25474c3
parent558a4b135cfbc9e72648cfbbc402dde22a36d632 (diff)
downloadmidimonster-d682a8df9a151538d70c8a7a23a68636284b1b94.tar.gz
midimonster-d682a8df9a151538d70c8a7a23a68636284b1b94.tar.bz2
midimonster-d682a8df9a151538d70c8a7a23a68636284b1b94.zip
Only run $CXX version when necessary
-rw-r--r--.travis.yml2
1 files changed, 1 insertions, 1 deletions
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: