-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
81 lines (75 loc) · 2.52 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
dist: trusty
sudo: required
language: cpp
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gcc-4.9
env: TRAVIS_CXX=g++-4.9 TRAVIS_CC=gcc-4.9 STRINGS=STD COVERAGE=FALSE
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gcc-4.9
env: TRAVIS_CXX=g++-4.9 TRAVIS_CC=gcc-4.9 STRINGS=ICU COVERAGE=FALSE
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- gcc-5
env: TRAVIS_CXX=g++-5 TRAVIS_CC=gcc-5 STRINGS=STD COVERAGE=TRUE
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- gcc-5
env: TRAVIS_CXX=g++-5 TRAVIS_CC=gcc-5 STRINGS=ICU COVERAGE=TRUE
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libboost-all-dev glib2.0-dev
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- GFSM_SRC="http://kaskade.dwds.de/~moocow/mirror/projects/gfsm"
- |
for pkg in gfsm-0.0.16-1 gfsmxl-0.0.15; do
curl -O ${GFSM_SRC}/${pkg}.tar.gz
tar xzf ${pkg}.tar.gz
pushd ${pkg}
CC=${TRAVIS_CC} CXX=${TRAVIS_CXX} ./configure && make && sudo make install
popd
done
- |
if [[ ${COVERAGE} == TRUE ]]; then
curl -O http://ftp.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz
tar xzf lcov_1.13.orig.tar.gz
pushd lcov-1.13/
make && sudo make install
popd
fi
- cd ..
script:
- mkdir build && cd build
- cmake .. -DSTRING_IMPL=${STRINGS} -DWITH_PYTHON=TRUE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${TRAVIS_CXX} -DCMAKE_C_COMPILER=${TRAVIS_CC} -DWITH_COVERAGE=${COVERAGE}
- make VERBOSE=1 && make buildtests && make check && sudo make install
after_script:
- |
if [[ ${COVERAGE} == TRUE ]]; then
make coverage VERBOSE=1
bash <(curl -s https://codecov.io/bash) -X gcov -f ${TRAVIS_BUILD_DIR}/build/coverage.info
fi