-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
97 lines (84 loc) · 2.54 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
dist: trusty
sudo: false
matrix:
include:
- compiler: python-cpplint
language: python
install:
- pip install cpplint
- curl -o cpplint.py https://raw.githubusercontent.com/michkot/cpplint/master/cpplint.py
script:
- "python3 cpplint.py --linelength=110 --extensions=cc,hh,cpp,hpp --filter=-legal,-runtime/int,-runtime/references,-whitespace/indentaccess,-whitespace/comments,-whitespace/braces,-readability/inheritance src/* || echo fail"
cache:
- compiler: gcc-4.9
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
#- libgtest-dev
- llvm-5.0-dev
- clang-5.0
- g++-4.9
env:
- MCXX="g++-4.9"
- MCC="gcc-4.9"
- compiler: gcc-6
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
#- libgtest-dev
- llvm-5.0-dev
- clang-5.0
- g++-6
env:
- MCXX="g++-6"
- MCC="gcc-6"
- compiler: clang-5.0
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
#- libgtest-dev
- llvm-5.0-dev
- clang-5.0
- g++-4.9
env:
- MCXX="clang++-5.0"
- MCC="clang-5.0"
cache:
apt: true
directories:
- $HOME/local/lib/
- $HOME/local/include/
install:
- export CXX=$MCXX CC=$MCC
- $CXX --version
- alias opt=opt-5.0
- opt --version
- opt-5.0 --version
#export PREFIX
- export PREFIX=$HOME/local
#export all the vars
- sh utils/install_main.sh export && $(sh utils/install_main.sh export) && export
#install google test (gtest)
- sh utils/install_main.sh gtest
#install boost
- sh utils/install_main.sh boost
#install range-v3
- sh utils/install_main.sh range-v3-vs2015
#install gsl
- sh utils/install_main.sh gsl-lite
script:
- export COPT=opt-5.0 CLANGXX=clang++-5.0 CLANG=clang-5.0
- mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug ../
- make && make tests