-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
143 lines (132 loc) · 3.83 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
sudo: required
dist: trusty
language: cpp
matrix:
include:
- compiler: gcc-4.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.6
- gfortran-4.6
- automake
env:
- MATRIX_EVAL="CXX=g++-4.6 CC=gcc-4.6 FC=gfortran-4.6"
- compiler: gcc-4.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gfortran-4.9
- automake
env:
- MATRIX_EVAL="CXX=g++-4.9 CC=gcc-4.9 FC=gfortran-4.9"
- compiler: gcc-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- gfortran-5
- automake
env:
- MATRIX_EVAL="CXX=g++-5 CC=gcc-5 FC=gfortran-5"
- compiler: gcc-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- gfortran-6
- automake
env:
- MATRIX_EVAL="CXX=g++-6 CC=gcc-6 FC=gfortran-6"
- compiler: clang-3.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- g++-4.9
#- gfortran-4.9
- automake
env:
- MATRIX_EVAL="CXX=clang++-3.6 CC=clang-3.6 FC=gfortran-4.9"
- compiler: clang-3.7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
- g++-4.9
#- gfortran-4.9
- automake
env:
- MATRIX_EVAL="CXX=clang++-3.7 CC=clang-3.7 FC=gfortran-4.9"
- compiler: clang-3.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
- g++-6
- automake
env:
- MATRIX_EVAL="CXX=clang++-3.8 CC=clang-3.8 FC=gfortran-4.8"
allow_failures:
- compiler: gcc-4.6
- compiler: gcc-4.9
fast_finish: true
before_install:
- eval "${MATRIX_EVAL}"
- echo "C++ Compiler:" $CXX
- echo "C Compiler:" $CC
- echo "F Compiler:" $FC
- $CXX --version
- $CC --version
#- $FC --version
install:
- sudo apt-get update -qq
# GTEST
- sudo apt-get install -y libgtest-dev
- sudo wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
- sudo tar xf release-1.8.0.tar.gz
- cd googletest-release-1.8.0
- sudo cmake -DBUILD_SHARED_LIBS=ON .
- sudo make
- sudo cp -a ./googletest/include/gtest /usr/include
- sudo cp -a ./googlemock/include/gmock /usr/include
- sudo cp -a ./googlemock/gtest/libgtest_main.so ./googlemock/gtest/libgtest.so /usr/lib/
- sudo cp -a ./googlemock/libgmock_main.so ./googlemock/libgmock.so /usr/lib/
# CPPCHECK
- sudo apt-get install -qq cppcheck
# Back to main
- cd ${TRAVIS_BUILD_DIR}
before_script:
- ls
- mkdir build
- cd build
- cmake .. -DBUILD_TESTS=on -DNOCOCO=on
- make VERBOSE=1
script:
- ./dtl_test
- ./dynstack_test
- ./rc_test
# CPPCHECK --error-exitcode=1
- cppcheck ../dynstack/ -I./../dynstack/include -I./../lib/DTL/include --enable=all --suppress=missingIncludeSystem --check-config --inconclusive --force #--project=./compile_commands.json
- cppcheck ../remote_control/ -I./../remote_control/include -I./../lib/DTL/include --enable=all --suppress=missingIncludeSystem --check-config --inconclusive --force #--project=./compile_commands.json
- cppcheck ../basic/ -I./../basic/include -I./../lib/DTL/include --enable=all --suppress=missingIncludeSystem --check-config --inconclusive --force #--project=./compile_commands.json
notifications:
email: false