-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.51 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
sudo: required
dist: trusty
language: cpp
matrix:
include:
- os: osx
compiler: clang
env: BUILD_TYPE=Debug
env: CXXFLAGS=-fno-var-tracking
- os: osx
compiler: gcc
env: BUILD_TYPE=Debug
env: CXXFLAGS=-fno-var-tracking
- os: osx
compiler: clang
env: BUILD_TYPE=Release
env: CXXFLAGS=-fno-var-tracking
- os: osx
compiler: gcc
env: BUILD_TYPE=Release
env: CXXFLAGS=-fno-var-tracking
before_script:
- mkdir build
- cd build
- cmake -G"Ninja" .. -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DMEZZ_BuildDoxygen=OFF -DMEZZ_CodeCoverage=ON
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo apt-get install valgrind ninja-build ggcov -q -y; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then sudo ln -sf /usr/bin/gcov-4.8 /usr/bin/gcov; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew install valgrind ninja; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then brew install ninja; fi
# Some day brew will fix valgrind
script:
- ninja
- ./Mezz_Mezzy_Tester
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then valgrind --tool=memcheck --leak-check=full --error-exitcode=1 ./Mezz_Mezzy_Tester; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then valgrind --tool=memcheck --leak-check=full --error-exitcode=1 ./Mezz_Mezzy_Tester Debug All; fi
after_success:
- ninja TestCoverage
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
recipients:
on_success: change
on_failure: always