-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
52 lines (44 loc) · 1.74 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
language: generic
matrix:
include:
- os: linux
addons:
apt:
packages:
- g++-7
- cmake-data
- cmake
- lcov
sources: &sources
- llvm-toolchain-precise-3.8
- ubuntu-toolchain-r-test
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- BADGE=linux
- os: osx
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- BADGE=osx
# - os: windows
# env:
# - MATRIX_EVAL="CC=CL && CXX=CL"
# - BADGE=windows
before_install:
- eval "${MATRIX_EVAL}"
script:
- git clone https://github.com/satya-das/cib.git
- git clone https://github.com/satya-das/cppparser.git
- git clone https://github.com/satya-das/common.git
- mkdir -p build
- cd build
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake -DCMAKE_C_COMPILER=`which gcc-7` -DCMAKE_CXX_COMPILER=`which g++-7` ../cib/ ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake ../cib/ ; fi
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then make; fi
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then make test; fi
# - if [ "$TRAVIS_OS_NAME" = "windows" ]; then cp ../travis-build.bat ./; fi
# - if [ "$TRAVIS_OS_NAME" = "windows" ]; then ./travis-build.bat ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then make CibCoverage ; fi
after_success:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash <(curl -s https://codecov.io/bash) -f cib.info -t"66bf246c-fcae-4dcc-8101-44e7e66e467d" || echo "Codecov did not collect coverage reports" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CODACY_PROJECT_TOKEN=17eabcd475514c49b5fbd1c9be7de818 ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r cib.info ; fi