Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/libatomic_ops.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-02-09 01:14:51 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-02-09 01:14:51 +0300
commita05abf6c9d5fb6ffa916e121a22eb5b6604262c4 (patch)
treee37308660537fa652b5e8cbe1365fd34aab5cfaa
parent7b9d74b6649d2ab092f6c3694f9262da232ccdd6 (diff)
Travis CI: Test compilation of C tests as C++ onesmaster
-rw-r--r--.travis.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 539fb18..9d8573f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -263,6 +263,11 @@ matrix:
- MAKEFILE_TARGET=all
- CFLAGS_EXTRA="-D AO_TRACE_MALLOC -D HAVE_MMAP -D VERBOSE"
- os: linux
+ compiler: gcc
+ env:
+ - CC_FOR_CHECK=g++
+ - MAKEFILE_TARGET=all
+ - os: linux
addons:
apt:
packages:
@@ -511,6 +516,9 @@ script:
make -j $MAKEFILE_TARGET CC=$CC 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 tests/test_atomic.log ]; then cat tests/test_atomic*.log; fi
- if [[ "$CSA_CHECK" == true ]]; then
${CC} --analyze -Xanalyzer -analyzer-output=text -Werror -I src