-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
144 lines (124 loc) · 3.44 KB
/
.travis.yml
File metadata and controls
144 lines (124 loc) · 3.44 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Eggs.Lexer
#
# Copyright Agustin K-ballo Berge, Fusion Fenix 2017
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
language: cpp
sudo: false
matrix:
include:
# clang-3.8
- env: CLANG_VERSION=3.8 CXXFLAGS="-std=c++1z" BUILD_TYPE=Debug
os: linux
addons: &clang38
apt:
packages:
- cmake
- cmake-data
- clang-3.8
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
- env: CLANG_VERSION=3.8 CXXFLAGS="-std=c++1z" BUILD_TYPE=Release
os: linux
addons: *clang38
# clang-3.9
- env: CLANG_VERSION=3.9 CXXFLAGS="-std=c++1z" BUILD_TYPE=Debug
os: linux
addons: &clang39
apt:
packages:
- cmake
- cmake-data
- clang-3.9
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.9
- env: CLANG_VERSION=3.9 CXXFLAGS="-std=c++1z" BUILD_TYPE=Release
os: linux
addons: *clang39
# clang-4
- env: CLANG_VERSION=4.0 CXXFLAGS="-std=c++1z" BUILD_TYPE=Debug
os: linux
dist: trusty
addons: &clang4
apt:
packages:
- cmake
- cmake-data
- clang-4.0
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
- env: CLANG_VERSION=4.0 CXXFLAGS="-std=c++1z" BUILD_TYPE=Release
os: linux
addons: *clang4
# gcc-5
- env: GCC_VERSION=5 CXXFLAGS="-std=c++1z" BUILD_TYPE=Debug
os: linux
addons: &gcc5
apt:
packages:
- cmake
- cmake-data
- g++-5
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- env: GCC_VERSION=5 CXXFLAGS="-std=c++1z" BUILD_TYPE=Release
os: linux
addons: *gcc5
# gcc-6
- env: GCC_VERSION=6 CXXFLAGS="-std=c++1z" BUILD_TYPE=Debug
os: linux
addons: &gcc6
apt:
packages:
- cmake
- cmake-data
- g++-6
sources:
- george-edison55-precise-backports
- ubuntu-toolchain-r-test
- env: GCC_VERSION=6 CXXFLAGS="-std=c++1z" BUILD_TYPE=Release
os: linux
addons: *gcc6
# Xcode 7.3
- env: CXXFLAGS="-std=c++1z" BUILD_TYPE=Debug
os: osx
osx_image: xcode7.3
addons: &xcode73
- env: CXXFLAGS="-std=c++1z" BUILD_TYPE=Release
os: osx
osx_image: xcode7.3
addons: *xcode73
# Xcode 8.3
- env: CXXFLAGS="-std=c++1z" BUILD_TYPE=Debug
os: osx
osx_image: xcode8.3
addons: &xcode83
- env: CXXFLAGS="-std=c++1z" BUILD_TYPE=Release
os: osx
osx_image: xcode8.3
addons: *xcode83
branches:
only:
- master
- develop
before_install:
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
install:
- mkdir build
- cd build
- export CXXFLAGS="${CXXFLAGS} -Wall -Wextra -Werror"
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
script:
- make -k
- ctest -V
notifications:
email: false