mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
sudo: false
|
|
|
|
language: c
|
|
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
|
|
matrix:
|
|
include:
|
|
- compiler: gcc
|
|
env: COVERAGE="--disable-valgrind --enable-gcov"
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libonig-dev
|
|
- valgrind
|
|
|
|
before_install:
|
|
- rm src/{lexer,parser}.{c,h}
|
|
|
|
install:
|
|
- bundle install --gemfile=docs/Gemfile
|
|
|
|
- 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
|
|
|
|
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
|
|
|
|
before_script:
|
|
- autoreconf -i
|
|
- ./configure
|
|
YACC="usr/bin/bison -y"
|
|
$COVERAGE
|
|
|
|
script:
|
|
- make -j4 BISON_PKGDATADIR=$(pwd)/usr/share/bison
|
|
- make check -j4
|
|
|
|
after_script:
|
|
- |
|
|
if [ -n "$COVERAGE" ]; then
|
|
rm -rf src/.libs usr # don't care about coverage for libjq and bison
|
|
coveralls --gcov-options '\-lp' \
|
|
-e src/lexer.c -e src/parser.c -e src/jv_dtoa.c
|
|
fi
|
|
|
|
after_failure:
|
|
- cat test-suite.log
|
|
- cat tests/*.log
|
|
|
|
notifications:
|
|
email: false
|