-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (65 loc) · 1.57 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
language: cpp
sudo: required
cache:
ccache: true
directories:
- $HOME/.ccache
env:
global:
- USE_CCACHE=1
- CCACHE_COMPRESS=1
- CCACHE_MAXSIZE=200M
- CCACHE_CPP2=1
- COMPILER='ccache g++-4.9'
- TMP_DIR='/tmp'
- TEST_INCLUDE_PATH=$TRAVIS_BUILD_DIR/test_includes
- TEST_SRC_PATH=$TRAVIS_BUILD_DIR/test
- TEST_CMAKE=$TRAVIS_BUILD_DIR/test_cmake
os: linux
dist: trusty
group: deprecated-2017Q4
compiler: g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- cmake
- lcov
- curl
before_install:
- mkdir -p ${TEST_INCLUDE_PATH}
- mkdir -p ${TEST_CMAKE}
install:
- bash ./test/setup/install_dependencies.sh
# install dependencies
before_script:
# build tests
- mkdir ./test/test_build
- cd ./test/test_build
- export CXX="g++-4.9"
- export GCOV="gcov-4.9"
- export COVERALLS_SERVICE_NAME=travis-ci
- export COVERALLS_REPO_TOKEN=TpmxcbIzHLa4FhBKuc8y0WQhzFoQMpQVO
- export CTEST_OUTPUT_ON_FAILURE=1
- cmake -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug ..
#build demos
- cd $TRAVIS_BUILD_DIR/demos
- bash ./setup.sh --all
script:
- cd $TRAVIS_BUILD_DIR/test/test_build
- make
- make coveralls ARGS="-V"
- cd $TRAVIS_BUILD_DIR/demos/demo_build
- make
#before we run the build
notifications: # set notification options
email:
recipients:
# change is when the repo status goes from pass to fail or vice versa
on_success: [change]
on_failure: [change]
# Or we could just enable/disable all email
email: true