Run check and distcheck in separate travis builds

This commit is contained in:
Vasil Velichkov 2017-10-19 03:46:03 +03:00 committed by Lev Walkin
parent 51612b2361
commit 3d3af67a37
1 changed files with 7 additions and 6 deletions

View File

@ -2,16 +2,17 @@ language: c
compiler:
- gcc
- clang
env:
- TASK=check CONFIG_FLAGS="--enable-Werror --enable-test-Werror --enable-code-coverage"
- TASK=distcheck CONFIG_FLAGS="--enable-Werror --enable-test-Werror" DISTCHECK_CONFIGURE_FLAGS=$CONFIG_FLAGS
before_install:
- sudo apt-get install -y gcc-multilib lcov libasan*
- gem install coveralls-lcov
script:
- autoreconf -iv
- ./configure --enable-Werror --enable-code-coverage
- make -j8
- make check
- make distcheck
- autoreconf -iv
- ./configure $CONFIG_FLAGS
- make $TASK
after_success:
- test "x$CC" = "xgcc" -o "x$CC" = "xclang" && make code-coverage-capture && coveralls-lcov asn1c-*-coverage.info
after_failure:
- find . -name test-suite.log -exec tail -v -n +1 {} +
- find . -name test-suite.log -exec tail -v -n +1 {} +