-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (53 loc) · 2.81 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
language: cpp
sudo: reguired
dist: trusty
env:
global:
- CTEST_EXT_COLOR_OUTPUT=TRUE
- CTEST_BUILD_FLAGS=-j4
matrix:
include:
- os: linux
compiler: gcc
env: CTEST_TARGET_SYSTEM=Linux-gcc CTEST_MODEL=Nightly COMPILER=g++-4.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- valgrind
- g++-4.9
- gcc-4.9
- lcov
- python3
- python3-pip
- doxygen
- cppcheck
- docker
code_climate:
repo_token: 54bb6b4e88c97d912140ca77ed5660a7df0da72ea5385f222ed55cd0970dce2f
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libboost1.55-dev
# make sure CXX is correctly set
- if [[ "${COMPILER}" != "" ]]; then export CXX=${COMPILER}; fi
- sudo python3 -m pip install coverxygen
- sudo docker pull codeclimate/codeclimate
- git clone https://github.com/antiagainst/codeclimate-cppcheck.git
- cd codeclimate-cppcheck && sudo docker build -t codeclimate/codeclimate-cppcheck . && cd ..
script:
- uname -a
- $CXX --version
- python3 --version
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make test
after_script:
- cmake -DCMAKE_BUILD_TYPE=Coverage ..
- make codecov_test
- ctest -V -D Experimental
- make codecov_doc
- cd ..
- export COCLICODE=11892789614367693df09da1e948472c1097cc7d076623df2d42c1ffde7a81ab
- docker run --env CODECLIMATE_CODE="$COCLICODE" --volume "$COCLICODE":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate engines:enable cppcheck
- docker run --env CODECLIMATE_CODE="$COCLICODE" --volume "$COCLICODE":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze