-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
79 lines (64 loc) · 1.46 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
dist: trusty
sudo: false
language: c
git:
depth: 1
compiler:
- gcc
- clang
env:
global:
- RE2C_VERSION=1.0.3
matrix:
- CC=gcc
- CC=clang
matrix:
fast_finish: true
exclude:
- env: CC=gcc
compiler: clang
- env: CC=clang
compiler: gcc
include:
- env: CC=gcc RE2C_VERSION=0.13.6
compiler: gcc
- env: CC=clang RE2C_VERSION=0.13.6
compiler: clang
cache:
apt: true
timeout: 604800
directories:
- $HOME/.local/opt/re2c
- $HOME/.cache/re2c
stages:
- test
addons:
apt:
update: true
packages:
lcov
check
libjson-c-dev
before_install:
- $CC --version
- export MAKEJOBS="-j$(getconf _NPROCESSORS_ONLN)"
- export TRAVIS_COMMIT_LOG=`git log --format=fuller -1`
install:
- sh tests/install-re2c $RE2C_VERSION
- sh autogen.sh
script:
- export LIBZEPHIR_CONFIG="--enable-debug --enable-lcov --enable-unit-test --enable-werror --enable-gprof"
- ./configure $LIBZEPHIR_CONFIG || ( cat config.log && false )
- make $MAKEJOBS || ( echo "Build failure. Verbose build follows." && make V=1 ; false )
- make check $MAKEJOBS VERBOSE=1
after_script:
- echo $TRAVIS_COMMIT_RANGE
- echo $TRAVIS_COMMIT_LOG
after_success:
- if [[ ! -z "${CODECOV_TOKEN}" ]]; then (bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"); fi;
after_failure:
- cat tests/tests-suite.log
notifications:
email:
on_success: never
on_failure: never