-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (70 loc) · 1.55 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
62
63
64
65
66
67
68
69
70
71
72
language : cpp
os : linux
dist : bionic
sudo : required
addons :
apt :
sources :
- sourceline: "ppa:ubuntu-toolchain-r/test"
- llvm-toolchain-bionic-10
packages:
- cmake
- git
- graphviz
- doxygen
- libcxxtools-dev
- libllvm10
- llvm-10
- llvm-10-dev
- llvm-10-runtime
- clang-10
- clang-tools-10
- libclang-common-10-dev
- libclang-10-dev
- libclang1-10
- clangd-10
- libomp-10-dev
stages :
- build
jobs :
- name : "llvm-10-gcc"
stage : build
cache :
ccache : true
apt : true
directories :
- $HOME/boost/
env :
- LLVM_VERSION=10
- LLVM_HOME=/usr/lib/llvm-10
- BOOST_ROOT=$HOME/boost/172
before_script:
- chmod +x scripts/travis/install_boost.sh
- scripts/travis/install_boost.sh
script:
- echo $LLVM_HOME
- ls $LLVM_HOME
- mkdir build && cd build && cmake ..
- make
- name : "llvm-10-clang"
stage : build
cache :
ccache : true
apt : true
directories :
- $HOME/boost/
env :
- LLVM_VERSION=10
- LLVM_HOME=/usr/lib/llvm-10
- CLANGPP=$LLVM_HOME/bin/clang++
- CLANG=$LLVM_HOME/bin/clang
- BOOST_ROOT=$HOME/boost/172
before_script:
- chmod +x scripts/travis/install_boost.sh
- scripts/travis/install_boost.sh
script:
- echo $LLVM_HOME
- ls $LLVM_HOME
- mkdir build && cd build
- cmake -DCMAKE_C_COMPILER=$CLANG -DCMAKE_CXX_COMPILER=$CLANGPP ..
- make