-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (26 loc) · 822 Bytes
/
.travis.yml
File metadata and controls
28 lines (26 loc) · 822 Bytes
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
language: cpp
compiler: gcc
install: make
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: g++-7 libgtest-dev cmake curl python3 python3-pip python3-setuptools
before_install:
- pip3 install git+https://github.com/gcovr/gcovr.git
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
script:
- cd $TRAVIS_BUILD_DIR
- make CXX=g++-7
- make CXX=g++-7 test
- ./neocortex_test
- gcovr
- gcovr --coveralls coveralls.json
- echo "{" > coveralls2.json
- "echo \"\\\"service_name\\\": \\\"travis-ci\\\",\" >> coveralls2.json"
- "echo \"\\\"service_job_id\\\": \\\"$TRAVIS_JOB_ID\\\",\" >> coveralls2.json"
- tail -c+2 coveralls.json >> coveralls2.json
- cat coveralls2.json
- "curl -F 'json_file=@coveralls2.json' https://coveralls.io/api/v1/jobs"