-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
61 lines (53 loc) · 1.78 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
50
51
52
53
54
55
56
57
58
59
60
61
sudo: required
dist: trusty
language: cpp
compiler:
- clang
before_install:
- echo $LANG
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
- sudo add-apt-repository -y 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main'
- sudo apt-get install -y software-properties-common
- sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
# - sudo apt-add-repository -y ppa:brightbox/ruby-ng
- sudo apt-get -qq -y update
install:
- env
- sudo apt-get install -y clang-3.7 lldb-3.7 libclang-3.7-dev
- sudo apt-get install -y gcc-4.9 libstdc++-4.9-dev
- sudo apt-get install -y cmake qt5-default qtbase5-private-dev
- sudo apt-get install -y libgoogle-perftools-dev
# - sudo apt-get install -y ruby2.2
- wget http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz
- wget http://llvm.org/releases/3.7.0/cfe-3.7.0.src.tar.xz
- tar xf llvm-3.7.0.src.tar.xz
- tar xf cfe-3.7.0.src.tar.xz
- mv -v cfe-3.7.0.src llvm-3.7.0.src/tools/clang
- sed 's/emit(/emitxxx(/g' /usr/lib/llvm-3.7/include/clang/Sema/Sema.h > Sema_mod.h
- sudo cp -v Sema_mod.h /usr/lib/llvm-3.7/include/clang/Sema/Sema.h
- env
before_script:
- clang-3.7 -v
- gcc -v
- gcc-4.9 -v
- ruby -v
- cmake --version
- qmake -v
- pwd
- ls -lh | grep llvm
- ls /usr/local
rvm:
- 2.2.0
script:
- CC=clang-3.7 CXX=clang++-3.7 LLVM_CONFIG=llvm-config-3.7 cmake .
- make
notifications:
email: false
os:
- linux
# reference
# http://mogproject.blogspot.com/2015/02/c-how-to-build-with-clang-35-in-travis.html
# http://llvm.org/apt/
# http://packages.ubuntu.com/search?suite=trusty§ion=all&arch=any&keywords=qt5+&searchon=names
# http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04