summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-11-06 22:23:25 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-11-06 22:23:25 (GMT)
commit9685d23fc73e3266abd4a5a47669b9d321c53665 (patch)
tree814defe213c9c98c1ee4f2041344432cdd5a2c91 /.travis
parent7569b5c8b04f471b51bc66cf85c1701c2913ed92 (diff)
downloadSCons-9685d23fc73e3266abd4a5a47669b9d321c53665.zip
SCons-9685d23fc73e3266abd4a5a47669b9d321c53665.tar.gz
SCons-9685d23fc73e3266abd4a5a47669b9d321c53665.tar.bz2
choose clang 5.0.0 or 7.0.0 depending what's installed
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/install.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/.travis/install.sh b/.travis/install.sh
index a8ebb9e..69e833a 100755
--- a/.travis/install.sh
+++ b/.travis/install.sh
@@ -2,10 +2,17 @@
set -x
# setup clang for clang tests using local clang installation
-sudo ln -s /usr/local/clang-7.0.0/bin/clang /usr/bin/clang
-sudo ln -s /usr/local/clang-7.0.0/bin/clang++ /usr/bin/clang++
-ls -l /usr/local/clang-7.0.0/bin/clang* /usr/bin/clang*
+
+if [ ! -f /usr/local/clang-5.0.0/bin/clang ]; then
+ echo "No Clang 5.0.0 trying 7.0.0"
+ sudo ln -s /usr/local/clang-7.0.0/bin/clang /usr/bin/clang
+ sudo ln -s /usr/local/clang-7.0.0/bin/clang++ /usr/bin/clang++
+else
+ echo "Clang 5.0.0"
+ sudo ln -s /usr/local/clang-5.0.0/bin/clang /usr/bin/clang
+ sudo ln -s /usr/local/clang-5.0.0/bin/clang++ /usr/bin/clang++
+fi
# dependencies for gdc tests
sudo apt-get -y install gdc