summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2016-08-06 12:26:46 +0200
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2016-09-13 11:00:07 +0200
commit4daf9a8d88215d7cd2fd9791c0a6dfb280d327a8 (patch)
tree692a65c48d1dc7dd82aad79c1a6654136c9d5e87
parentf31c32721333a6647555a562f063cec0a51f3e75 (diff)
Reenable clang-3.9 build on travis (#806)
clang-3.9 is now available with apt add-on in travis-ci
-rw-r--r--.travis.yml10
-rwxr-xr-xtools/travis-ci/install.sh30
2 files changed, 10 insertions, 30 deletions
diff --git a/.travis.yml b/.travis.yml
index 5624a955..ca9a0e61 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,6 +22,16 @@ matrix:
compiler: clang
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Debug OPJ_CI_ASAN=1
- os: linux
+ compiler: clang-3.9
+ env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Release
+ addons:
+ apt:
+ sources:
+ - llvm-toolchain-precise
+ - ubuntu-toolchain-r-test
+ packages:
+ - clang-3.9
+ - os: linux
compiler: x86_64-w64-mingw32-gcc
env: OPJ_CI_ARCH=x86_64 OPJ_CI_BUILD_CONFIGURATION=Release
addons:
diff --git a/tools/travis-ci/install.sh b/tools/travis-ci/install.sh
index 1a4c0bb9..003f8fa8 100755
--- a/tools/travis-ci/install.sh
+++ b/tools/travis-ci/install.sh
@@ -115,33 +115,3 @@ if [ "${OPJ_CI_SKIP_TESTS:-}" != "1" ]; then
fi
fi
fi
-
-# Install clang if necessary.
-# clang-3.4 is available on base image
-# For more up-to-date versions, use packages from http://llvm.org/apt
-# Cannot use addons.apt.packages because clang-3.9 is currently on hold
-# (see https://github.com/travis-ci/apt-package-whitelist/pull/2780 or https://github.com/travis-ci/apt-package-whitelist/pull/2770)
-# "sudo: required" should be set in .travis.yml matrix for those configurations
-if echo "${CC:-}" | egrep -q "^clang-3.[7-9]?$" ; then
- case "${CC:-}" in
- clang-3.7)
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main" | sudo tee /etc/apt/sources.list.d/llvm.list
- ;;
- clang-3.8)
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.8 main" | sudo tee /etc/apt/sources.list.d/llvm.list
- ;;
- clang-3.9)
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise main" | sudo tee /etc/apt/sources.list.d/llvm.list
- ;;
- *)
- echo "We should never have been there. Exiting..."
- exit 1
- esac
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
-
- # On precise, ubuntu-toolchain ppa must be installed also (see http://llvm.org/apt)
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
-
- sudo apt-get update -qq
- sudo apt-get install "${CC:-}" -y
-fi