neovim/scripts/travis-setup.sh
Thiago de Arruda f6ace9962d Refactor travis build to use clang's sanitizers
- Valgrind configuration removed
- Fix errors reported by the undefined behavior sanitizer
- Travis will now run two build steps:
  - A normal build of a shared library for unit testing(in parallel with gcc)
  - A clang build with some sanitizers enabled for integration testing.

After these changes travis will run much faster, while providing valgrind-like
error detection.
2014-03-13 15:26:28 -03:00

20 lines
652 B
Bash
Executable File

#!/bin/sh -e
# [ "$CC" != "clang" ] && exit
add-apt-repository -y ppa:ubuntu-toolchain-r/ppa
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -
cat > /etc/apt/sources.list.d/clang.list << "EOF"
deb http://llvm.org/apt/precise/ llvm-toolchain-precise main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise main
# 3.4
deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main
deb-src http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main
# Common
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main
EOF
apt-get -qq update
apt-get -qq -y --no-install-recommends install clang-3.4 lldb-3.4