diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-02-08 10:02:19 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-02-08 10:02:19 +0300 |
commit | 5df7ef6c0786f3cd9b7c3208055ada6d688a0692 (patch) | |
tree | 991e5720a891a23aa3d4eac485ba7005c4ed6df7 /.travis.yml | |
parent | 551bed3add45ef909cf4cce02af255e08f4a0ec2 (diff) |
Travis CI: Test compilation of C tests as C++ ones
Issue #201 (bdwgc).
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 32d79836..627f9065 100644 --- a/.travis.yml +++ b/.travis.yml @@ -451,6 +451,11 @@ matrix: - CONF_OPTIONS="--enable-munmap --enable-large-config --enable-gc-assertions" - NO_CLONE_LIBATOMIC_OPS=true - os: linux + compiler: gcc + env: + - CC_FOR_CHECK=g++ + - MAKEFILE_TARGETS="all" + - os: linux addons: apt: packages: @@ -534,6 +539,9 @@ script: make -j -f $MAKEFILE_NAME $MAKEFILE_TARGETS CFLAGS_EXTRA="$CFLAGS_EXTRA" LDFLAGS="$LDFLAGS"; fi +- if [[ "$CC_FOR_CHECK" != "" ]]; then + make check CC=$CC_FOR_CHECK CFLAGS_EXTRA="$CFLAGS_EXTRA"; + fi - if [ -f gctest.log ]; then cat gctest.log; fi - if [[ "$CSA_CHECK" == true ]]; then ${CC} --analyze -Xanalyzer -analyzer-output=text -Werror |