-
Notifications
You must be signed in to change notification settings - Fork 68
/
.travis.yml
59 lines (52 loc) · 1.39 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
sudo: false
language: cpp
matrix:
include:
- os: osx
compiler: clang
- os: linux
dist: trusty
compiler: gcc
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
- os: linux
dist: precise
compiler: gcc
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
fast_finish:
- true
before_install:
# Set alias for readability
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then LINUX=true; fi
- if [[ $LINUX ]]; then gem install coveralls-lcov; fi
install:
- mkdir $HOME/install
- export CARLSIM3_INSTALL_DIR=$HOME/install
- export CARLSIM3_NO_CUDA=1
- if [[ $LINUX ]]; then export CARLSIM3_COVERAGE=1; fi
- cd external/googletest
- mkdir build
- cd build
- cmake ..
- make
- cd ../../..
- pwd
- make -j4
- make install
script:
- make test
- ./carlsim/test/carlsim_tests
after_success:
- if [[ $LINUX ]]; then lcov -b . -d . -c -o ./coverage.info; fi
- if [[ $LINUX ]]; then lcov -r coverage.info "/usr*" -o coverage.info; fi
- if [[ $LINUX ]]; then lcov -r coverage.info "external/*" -o coverage.info; fi
- if [[ $LINUX ]]; then lcov -r coverage.info "*.h" -o coverage.info; fi
- if [[ $LINUX ]]; then lcov -r coverage.info "*.cu" -o coverage.info; fi
- if [[ $LINUX ]]; then coveralls-lcov coverage.info; fi