-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (39 loc) · 1.79 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
language: cpp
sudo: required
dist: trusty
os:
- linux
- windows
compiler:
- g++
- clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install --user cpp-coveralls; fi
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash <(curl -s https://codecov.io/bash) -t 1cf15c36-7686-41d9-99e4-fb530dd096e5; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then lcov --capture --directory . --output-file coverage.info; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then lcov --remove coverage.info '/usr/*' --output-file coverage.info; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then lcov --list coverage.info; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.info || "Codecov didn't collect coverage reports"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then coveralls --build-root .build/linux/release --gcov-options '\-lp' -e sample -e .build/linux/release/CMakeFiles -e .build/linux/release/googletest-src -e .build/linux/debug; fi
after_failure:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd /home/travis/build/jrziviani/amps/.build/linux/debug/bin/test; ./amps_test; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- g++-7
- gcc-7
- clang-5.0
- gcovr
- lcov
- cmake
- cmake-data
script:
- export CC=gcc-7
- export CXX=g++-7
- gcc -v && g++ -v && cmake --version && cmake --help
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./build --clear --linux --test --binary --release --debug --static; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then ./build --clear --windows --test --binary --release --debug --static; fi