forked from xmidt-org/webcfg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (24 loc) · 821 Bytes
/
.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
language: c
jobs:
include:
- os: linux
dist: xenial
compiler: gcc
- os: linux
dist: xenial
compiler: clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo pip install codecov; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cunit; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --HEAD valgrind; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y -qq libcunit1 libcunit1-dev lcov valgrind; fi
install:
script:
- mkdir build
- cd build
- cmake .. -DDISABLE_VALGRIND:BOOL=false
- make
- make test
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then codecov; fi