git repos / PlatformFolders

commit 3fe9a770

sum01 · 2018-04-16 03:09
3fe9a770e395aea91fc897ca7fada2ef8215bdb6 patch · browse files
parent ad05ef732f1500fc6224383fc8a8e6c118eddfb4

Add Cmake building/testing for TravisCI
This creates:
* Linux gcc debug
* Linux clang debug
* Linux gcc release
* Linux clang release
* OSX gcc debug
* OSX clang debug
* OSX gcc release
* OSw clang release

Changed files

M .travis.yml before
diff --git a/.travis.yml b/.travis.yml index 8801d7d..9f7a3f4 100644 --- a/.travis.yml +++ b/.travis.yml
@@ -1,13 +1,34 @@
language: cpp
-
-os:
- - linux
- - osx
-
-compiler:
- - gcc
- - clang
-script: make && ./platform_folders.out
-
+matrix:
+ include:
+ - os: linux
+ env: BUILD_TYPE=Debug
+ compiler: gcc
+ - os: linux
+ env: BUILD_TYPE=Debug
+ compiler: clang
+ - os: linux
+ env: BUILD_TYPE=Release
+ compiler: gcc
+ - os: linux
+ env: BUILD_TYPE=Release
+ compiler: clang
+ - os: osx
+ env: BUILD_TYPE=Debug
+ compiler: gcc
+ - os: osx
+ env: BUILD_TYPE=Debug
+ compiler: clang
+ - os: osx
+ env: BUILD_TYPE=Release
+ compiler: gcc
+ - os: osx
+ env: BUILD_TYPE=Release
+ compiler: clang
+before_script:
+ - mkdir -p build && cd build
+script:
+ # Run cmake, then compile and run tests with make
+ - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. && make -j$(nproc) && make test
notifications:
email: false