-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
49 lines (49 loc) · 2.41 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: cpp
language: cpp
before_install:
# We need this line to have g++4.8 available in apt
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.4 main' >> /etc/apt/sources.list"
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"
- sudo sh -c "echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main' >> /etc/apt/sources.list"
- sudo wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
# build glog
- wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz -O /tmp/glog-0.3.3.tar.gz && tar -C /tmp -xzvf /tmp/glog-0.3.3.tar.gz && rm /tmp/glog-0.3.3.tar.gz
- cd /tmp/glog-0.3.3 && ./configure && make && sudo make install && cd -
# add libunwind
- sudo apt-get install -qq libunwind7-dev
# add google perf tools
- sudo apt-get install -qq libgoogle-perftools-dev
# add gmp
- sudo apt-get install libgmp-dev -qq
# add valgrind (required for tests)
- sudo apt-get -qq install valgrind
# add semi-modern gcc
- sudo apt-get install -qq gcc-4.8 g++-4.8
# grab llvm (and clang) 3.4
#- sudo apt-get install -qq libclang1 llvm-3.4-dev libclang-common-3.4-dev libclang-3.4-dev clang-3.4-dev
- sudo rm -Rf /usr/local/clang*
- sudo apt-get install -qq clang-3.4 libclang-common-3.4-dev libclang-3.4-dev libclang1-3.4 libclang1-3.4-dbg libllvm-3.4-ocaml-dev libllvm3.4 libllvm3.4-dbg llvm-3.4 llvm-3.4-dev llvm-3.4-runtime clang-modernize-3.4 clang-format-3.4 python-clang-3.4
# We want to compile with g++ 4.8 when rather than the default g++
- sudo update-alternatives --install /usr/bin/opt opt /usr/bin/opt-3.4 90
- sudo update-alternatives --install /usr/bin/llvm-dis llvm-dis /usr/bin/llvm-dis-3.4 90
- sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.4 90
- sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-3.4 90
- sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.4 90
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- which llvm-dis
- which clang
- which clang++
- which opt
- which llvm-config
compiler:
- gcc
- clang
script: source environment_vars.sh && scons
notifications:
email:
- bmehne@berkeley.edu
- nacuong@berkeley.edu
- rubio@eecs.berkeley.edu