Automatically run CI tests with clang
authorNikolaus Rath <Nikolaus@rath.org>
Sun, 5 Jun 2016 20:20:07 +0000 (16:20 -0400)
committerNikolaus Rath <Nikolaus@rath.org>
Sun, 5 Jun 2016 20:20:07 +0000 (16:20 -0400)
Fixes: #51
.travis.yml

index 565bf5e633bbcb3f17c23765802eecc67ad3a8b7..35c4be53b4edc295bc6e1c38569db50b8fded2ee 100644 (file)
@@ -3,7 +3,7 @@ language:
     - python
     - c
 python: "3.5"
-compiler: gcc
+compiler: gcc clang
 install:
     - sudo apt-get update -qq
     - sudo apt-get install -qq doxygen libtool automake autoconf
@@ -14,3 +14,10 @@ script:
     - make -j4
     - doxygen doc/Doxyfile
     - python -m pytest test/
+    - make clean
+    - make -j4 CC=clang CFLAGS="-fsanitize=address -g -O1"
+    - python -m pytest test/
+    - make clean
+    - make -j4 CC=clang CFLAGS="-fsanitize=thread,undefined -g -O1"
+    - python -m pytest test/
+