2014-01-28 18:53:48 +08:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- JANSSON_BUILD_METHOD=cmake JANSSON_CMAKE_OPTIONS="-DJANSSON_TEST_WITH_VALGRIND=ON" JANSSON_EXTRA_INSTALL="valgrind"
|
|
|
|
- JANSSON_BUILD_METHOD=autotools
|
2014-12-11 05:30:33 +08:00
|
|
|
- JANSSON_BUILD_METHOD=coverage JANSSON_CMAKE_OPTIONS="-DJANSSON_COVERAGE=ON -DJANSSON_COVERALLS=ON -DCMAKE_BUILD_TYPE=Debug" JANSSON_EXTRA_INSTALL="lcov curl"
|
2019-06-28 20:22:51 +08:00
|
|
|
- JANSSON_BUILD_METHOD=fuzzer
|
2012-12-23 13:09:55 +08:00
|
|
|
language: c
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2014-12-11 05:30:33 +08:00
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
- compiler: clang
|
|
|
|
env: JANSSON_BUILD_METHOD=coverage JANSSON_CMAKE_OPTIONS="-DJANSSON_COVERAGE=ON -DJANSSON_COVERALLS=ON -DCMAKE_BUILD_TYPE=Debug" JANSSON_EXTRA_INSTALL="lcov curl"
|
2019-07-24 17:39:35 +08:00
|
|
|
- compiler: clang
|
|
|
|
env: JANSSON_BUILD_METHOD=fuzzer
|
2014-12-11 05:30:33 +08:00
|
|
|
allow_failures:
|
|
|
|
- env: JANSSON_BUILD_METHOD=coverage JANSSON_CMAKE_OPTIONS="-DJANSSON_COVERAGE=ON -DJANSSON_COVERALLS=ON -DCMAKE_BUILD_TYPE=Debug" JANSSON_EXTRA_INSTALL="lcov curl"
|
2014-01-28 18:53:48 +08:00
|
|
|
install:
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -y -qq cmake $JANSSON_EXTRA_INSTALL
|
|
|
|
script:
|
|
|
|
- if [ "$JANSSON_BUILD_METHOD" = "autotools" ]; then autoreconf -f -i && CFLAGS=-Werror ./configure && make check; fi
|
2014-12-11 05:30:33 +08:00
|
|
|
- if [ "$JANSSON_BUILD_METHOD" = "cmake" ]; then mkdir build && cd build && cmake $JANSSON_CMAKE_OPTIONS .. && cmake --build . && ctest --output-on-failure; fi
|
|
|
|
- if [ "$JANSSON_BUILD_METHOD" = "coverage" ]; then mkdir build && cd build && cmake $JANSSON_CMAKE_OPTIONS .. && cmake --build . && cmake --build . --target coveralls; fi
|
2019-07-18 21:49:07 +08:00
|
|
|
- if [ "$JANSSON_BUILD_METHOD" = "fuzzer" ]; then ./test/ossfuzz/travisoss.sh; fi
|