Files
jq/.travis.yml
T

53 lines
1.1 KiB
YAML
Raw Normal View History

2014-12-22 21:37:23 -08:00
sudo: false
language: c
2015-06-27 10:16:13 -07:00
compiler:
- gcc
- clang
matrix:
include:
- compiler: gcc
env: COVERAGE="--disable-valgrind --enable-gcov"
2015-06-20 22:44:09 -07:00
addons:
apt:
packages:
- libonig-dev
- valgrind
before_install:
- rm lexer.h lexer.c parser.h parser.c
install:
- bundle install --gemfile=docs/Gemfile
2015-06-20 22:44:09 -07:00
- wget http://ftp.debian.org/debian/pool/main/b/bison/bison_3.0.2.dfsg-2_amd64.deb
- ar p bison_3.0.2.dfsg-2_amd64.deb data.tar.xz | tar xJ
2015-06-27 10:16:13 -07:00
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
2015-06-20 22:44:09 -07:00
before_script:
- autoreconf -i
2015-06-20 22:44:09 -07:00
- ./configure
YACC="usr/bin/bison -y"
2015-06-27 10:16:13 -07:00
$COVERAGE
script:
2015-07-10 13:10:06 -07:00
- make -j4 BISON_PKGDATADIR=$(pwd)/usr/share/bison
2015-06-20 22:44:09 -07:00
- make check -j4
2015-06-27 10:16:13 -07:00
after_script:
2015-06-27 13:48:54 -07:00
- |
if [ -n "$COVERAGE" ]; then
2015-07-10 13:10:06 -07:00
rm -rf .libs usr # don't care about coverage for libjq and bison
2015-06-27 13:48:54 -07:00
coveralls -e lexer.c -e parser.c -e jv_dtoa.c --gcov-options '\-lp'
fi
2015-06-27 10:16:13 -07:00
2015-06-20 22:44:09 -07:00
after_failure:
- cat test-suite.log
- cat tests/*.log
notifications:
email: false