-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
87 lines (78 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
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=100 --extensions=cc,hh --filter=-legal,-runtime/int,-runtime/references,-whitespace/indentaccess,-whitespace/comments src/*/*"
cache:
- compiler: gcc-4.9
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- libgtest-dev
#- libboost-dev
env:
- COMPILERXX="g++-4.9"
- COMPILERC="gcc-4.9"
- compiler: gcc-5
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libgtest-dev
#- libboost-dev
env:
- COMPILERXX="g++-5"
- COMPILERC="gcc-5"
- compiler: clang-3.6
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- libgtest-dev
#- libboost-dev
env:
- COMPILERXX="clang++-3.6"
- COMPILERC="clang-3.6"
## disabled because of https://llvm.org/bugs/show_bug.cgi?id=22757, waiting for
# - compiler: clang-3.8
# language: cpp
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# - llvm-toolchain-precise
# packages:
# - clang-3.8
# - libgtest-dev
# env:
# - COMPILERXX="clang++-3.8"
# - COMPILERC="clang-3.8"
cache:
apt: true
directories:
- $HOME/gtest/
install:
- export CXX=$COMPILERXX CC=$COMPILERC
- $CXX --version
# - "if [ ! -f $HOME/gtest/libgtest.a ]; then .... ; fi
- "mkdir -p $HOME/gtest && cd $HOME/gtest && cmake --target install -DCMAKE_INSTALL_PREFIX=$HOME/lib/ -Dgtest_disable_pthreads=ON /usr/src/gtest && cmake --build . && cd -"
- rm -rf $HOME/gtest/CMakeFiles/Makefile.cmake #for cache
- ls $HOME/gtest
- export LIBRARY_PATH=$HOME/gtest/:$LIBRARY_PATH
script: make debug && make tests