|
@@ -2,22 +2,22 @@
|
|
|
set -ev
|
|
|
|
|
|
|
|
|
-if ! [ -z ${FUZZER+x} ]; then
|
|
|
- # we need libfuzzer 5.0, all the older versions do not work on travis.
|
|
|
- sudo apt-get --yes install git
|
|
|
- git clone https://github.com/google/fuzzer-test-suite.git FTS
|
|
|
- ./FTS/tutorial/install-deps.sh # Get deps
|
|
|
- ./FTS/tutorial/install-clang.sh # Get fresh clang binaries
|
|
|
- # Get libFuzzer sources and build it
|
|
|
- svn co http://llvm.org/svn/llvm-project/llvm/trunk/lib/Fuzzer
|
|
|
- Fuzzer/build.sh
|
|
|
- exit 0
|
|
|
-fi
|
|
|
-
|
|
|
if [ -z ${DOCKER+x} ]; then
|
|
|
# Only on non-docker builds required
|
|
|
|
|
|
echo "=== Installing from external package sources ===" && echo -en 'travis_fold:start:before_install.external\\r'
|
|
|
+
|
|
|
+ if [ "$CC" = "clang" ]; then
|
|
|
+ # the ubuntu repo has a somehow broken clang-3.9 compiler. We want to use the one from the llvm repo
|
|
|
+ # See https://github.com/openssl/openssl/commit/404c76f4ee1dc51c0d200e2b60a6340aadb44e38
|
|
|
+ sudo cp .travis-apt-pin.preferences /etc/apt/preferences.d/no-ubuntu-clang
|
|
|
+ curl -sSL "http://apt.llvm.org/llvm-snapshot.gpg.key" | sudo -E apt-key add -
|
|
|
+ echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee -a /etc/apt/sources.list > /dev/null
|
|
|
+ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
|
|
|
+ sudo -E apt-get -yq update
|
|
|
+ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-3.9 clang-tidy-3.9 libfuzzer-3.9-dev
|
|
|
+ fi
|
|
|
+
|
|
|
sudo add-apt-repository -y ppa:lttng/ppa
|
|
|
sudo apt-get update -qq
|
|
|
sudo apt-get install -y liburcu4 liburcu-dev
|