forked from cginternals/cmake-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (50 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: c++
env:
global:
- CMAKE_OPTIONS="-DOPTION_BUILD_EXAMPLES=On"
matrix:
include:
- os: osx
osx_image: xcode9.1
env: CMAKE_CONFIGURATION=release BUILD_DIR=build
- os: osx
osx_image: xcode9.1
env: CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
- os: linux
compiler: clang
env: CMAKE_CONFIGURATION=release BUILD_DIR=build
- os: linux
compiler: clang
env: CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
- os: linux
compiler: gcc
env:
- CMAKE_CONFIGURATION=release BUILD_DIR=build
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- g++-5
- os: linux
compiler: gcc
env:
- CMAKE_CONFIGURATION=debug BUILD_DIR=build-debug
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- g++-5
before_script:
- eval "${MATRIX_EVAL}"
- chmod +x ./configure
- ./configure
- ./configure $CMAKE_CONFIGURATION
script:
- cmake --build $BUILD_DIR
- cmake --build $BUILD_DIR --target test