-
Notifications
You must be signed in to change notification settings - Fork 50
/
.travis.yml
44 lines (44 loc) · 1.02 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
language: c
compiler:
- gcc
- clang
sudo: false
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- gettext
- libc6-dev
before_install:
- pip2 install --user cpp-coveralls
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CC="gcc-4.8";
export CXX="g++-4.8";
export LINK="gcc-4.8";
export LINKXX="g++-4.8";
elif [ $TRAVIS_OS_NAME == "osx" ]; then
export CC="clang";
export CXX="clang++";
export LINK="clang";
export LINKXX="clang++";
fi
- gcc --version
- g++ --version
script:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
./compilar_gcc.sh;
./run_coverage_gcc.sh;
elif [ $TRAVIS_OS_NAME == "osx" ]; then
./compilar_clang.sh;
./run_coverage_clang.sh;
fi
after_success:
- cd bin
- bash <(curl -s https://codecov.io/bash)
- coveralls --exclude lib --exclude tests --gcov-options '\-lp'