-
Notifications
You must be signed in to change notification settings - Fork 86
/
.travis.yml
53 lines (46 loc) · 1.34 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
sudo: false
language: cpp
matrix:
include:
- os: osx
compiler: clang
#FIX THIS
# - os: linux
# dist: trusty
# 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/carlsim4_install
- export CARLSIM4_INSTALL_DIR=$HOME/carlsim4_install
- export CARLSIM4_NO_CUDA=1
- if [[ $LINUX ]]; then export CARLSIM4_COVERAGE=1; fi
- cd external/googletest
- mkdir build
- cd build
- cmake ..
- make
- cd ../../..
- pwd
- make distclean
- make release_nocuda -j4
- make install
script:
- make test_nocuda
- travis_wait 49 ./carlsim/test/carlsim_tests --gtest_filter=-*_MultiGPU:*_Adv
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