forked from emil-e/rapidcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
112 lines (100 loc) · 2.77 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
language: cpp
sudo: false
branches:
only:
- master
matrix:
include:
# Clang 3.4
- addons: &clang34
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.4
packages:
- cmake
- cmake-data
- ninja-build
- g++-4.9
- clang-3.4
compiler: clang
env: COMPILER_VERSION=3.4 BUILD_TYPE=Debug
- addons: *clang34
compiler: clang
env: COMPILER_VERSION=3.4 BUILD_TYPE=Release
# Clang 3.5
- addons: &clang35
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
- cmake
- cmake-data
- ninja-build
- g++-4.9
- clang-3.5
compiler: clang
env: COMPILER_VERSION=3.5 BUILD_TYPE=Debug
- addons: *clang35
compiler: clang
env: COMPILER_VERSION=3.5 BUILD_TYPE=Release
# Clang 3.7
- addons: &clang37
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- cmake
- cmake-data
- ninja-build
- g++-4.9
- clang-3.7
compiler: clang
env: COMPILER_VERSION=3.7 BUILD_TYPE=Debug
- addons: *clang37
compiler: clang
env: COMPILER_VERSION=3.7 BUILD_TYPE=Release
# GCC 4.9
- addons: &gcc49
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
packages:
- cmake
- cmake-data
- ninja-build
- g++-4.9
compiler: gcc
env: COMPILER_VERSION=4.9 BUILD_TYPE=Debug
- addons: *gcc49
compiler: gcc
env: COMPILER_VERSION=4.9 BUILD_TYPE=Release
# GCC 4.8
- addons: &gcc48
apt:
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
packages:
- cmake
- cmake-data
- ninja-build
- g++-4.8
compiler: gcc
env: COMPILER_VERSION=4.8 BUILD_TYPE=Debug
- addons: *gcc48
compiler: gcc
env: COMPILER_VERSION=4.8 BUILD_TYPE=Release
script:
- mkdir build && cd build
- export CC="${CC}-${COMPILER_VERSION}"
- export CXX="${CXX}-${COMPILER_VERSION}"
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DRC_ENABLE_TESTS=ON -DRC_ENABLE_EXAMPLES=ON -DRC_ENABLE_GTEST=ON -DRC_ENABLE_GMOCK=ON -DRC_ENABLE_BOOST=ON -DRC_ENABLE_BOOST_TEST=ON -G Ninja ..
- ninja -j1 # Don't run out of memory, please
- ctest --output-on-failure