Commit 8d711074ac2d1ee6a6c5f9f1e974f932cb95b42b

Carlos Martín Nieto 2012-07-22T19:42:47

travis: build with both gcc and clang

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/.travis.yml b/.travis.yml
index c9d99d6..caead67 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,8 +6,10 @@ language: erlang
 
 # Settings to try
 env:
-  - OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
-  - OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON"
+  - CC=gcc OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
+  - CC=clang OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
+  - CC=gcc OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON"
+  - CC=clang OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=ON"
   - CC=i586-mingw32msvc-gcc OPTIONS="-DBUILD_CLAR=OFF -DWIN32=ON -DMINGW=ON"
       
 # Make sure CMake is installed