forked from mity/acutest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (28 loc) · 1.07 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
# YAML definition for travis-ci.com continuous integration.
# See https://docs.travis-ci.com/user/languages/c
# Container-based infrastructure (Linux)
# * https://docs.travis-ci.com/user/migrating-from-legacy/#How-can-I-use-container-based-infrastructure%3F
sudo:
- false
language: c++
compiler:
- gcc
- clang
env:
- CFLAGS="-std=c99 -pedantic" CONFIG=Debug # C99
- CFLAGS="-std=c99 -pedantic" CONFIG=Release
- CFLAGS="-std=c11 -pedantic" CONFIG=Debug # C11
- CFLAGS="-std=c11 -pedantic" CONFIG=Release
- CXXFLAGS="-std=c++11 -pedantic" CONFIG=Debug # C++11
- CXXFLAGS="-std=c++11 -pedantic" CONFIG=Release
# Too old compilers on travis-ci.org for these:
#- CXXFLAGS="-std=c++14 -pedantic" CONFIG=Debug # C++14
#- CXXFLAGS="-std=c++14 -pedantic" CONFIG=Release
#- CXXFLAGS="-std=c++17 -pedantic" CONFIG=Debug # C++17
#- CXXFLAGS="-std=c++17 -pedantic" CONFIG=Release
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=$CONFIG -G 'Unix Makefiles' ..
script:
- make VERBOSE=1