Lev Walkin | 5809ec6 | 2014-09-07 09:39:39 -0700 | [diff] [blame] | 1 | language: c |
| 2 | compiler: |
| 3 | - gcc |
| 4 | - clang |
Vasil Velichkov | 3d3af67 | 2017-10-19 03:46:03 +0300 | [diff] [blame] | 5 | env: |
Lev Walkin | c547661 | 2017-10-19 03:36:09 -0700 | [diff] [blame] | 6 | - TASK=check CONFIG_FLAGS="--enable-Werror --enable-test-Werror --enable-code-coverage" |
Lev Walkin | 1d2a6e8 | 2017-10-19 03:45:21 -0700 | [diff] [blame] | 7 | - TASK=distcheck |
Vasil Velichkov | 9e935ae | 2016-07-18 22:50:05 +0300 | [diff] [blame] | 8 | before_install: |
Vasil Velichkov | 6cec1af | 2017-10-10 22:48:38 +0300 | [diff] [blame] | 9 | - sudo apt-get install -y gcc-multilib lcov libasan* |
Vasil Velichkov | 9e935ae | 2016-07-18 22:50:05 +0300 | [diff] [blame] | 10 | - gem install coveralls-lcov |
Lev Walkin | ef72650 | 2017-07-05 16:34:13 -0700 | [diff] [blame] | 11 | script: |
Vasil Velichkov | 3d3af67 | 2017-10-19 03:46:03 +0300 | [diff] [blame] | 12 | - autoreconf -iv |
| 13 | - ./configure $CONFIG_FLAGS |
| 14 | - make $TASK |
Vasil Velichkov | 9e935ae | 2016-07-18 22:50:05 +0300 | [diff] [blame] | 15 | after_success: |
Lev Walkin | 0eca8c3 | 2017-03-26 23:06:42 -0700 | [diff] [blame] | 16 | - test "x$CC" = "xgcc" -o "x$CC" = "xclang" && make code-coverage-capture && coveralls-lcov asn1c-*-coverage.info |
Vasil Velichkov | d06dc09 | 2017-10-10 07:40:32 +0300 | [diff] [blame] | 17 | after_failure: |
Vasil Velichkov | 3d3af67 | 2017-10-19 03:46:03 +0300 | [diff] [blame] | 18 | - find . -name test-suite.log -exec tail -v -n +1 {} + |