-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
104 lines (90 loc) · 2.1 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
# Test configuration for Travis CI. See <https://travis-ci.org/>.
language: cpp
matrix:
include:
- os: osx
compiler: clang
- os: linux
dist: xenial
compiler: clang
- os: linux
dist: xenial
addons:
apt:
packages:
- g++-5
- g++-5-multilib
sources: &sources
- ubuntu-toolchain-r-test
env:
- COMPILERS="CC=gcc-5 && CXX=g++-5"
- os: linux
dist: xenial
addons:
apt:
packages:
- g++-6
- g++-6-multilib
sources: &sources
- ubuntu-toolchain-r-test
env:
- COMPILERS="CC=gcc-6 && CXX=g++-6"
- os: linux
dist: xenial
addons:
apt:
packages:
- g++-7
- g++-7-multilib
sources: &sources
- ubuntu-toolchain-r-test
env:
- COMPILERS="CC=gcc-7 && CXX=g++-7"
- os: linux
dist: xenial
addons:
apt:
packages:
- g++-8
- g++-8-multilib
sources: &sources
- ubuntu-toolchain-r-test
env:
- COMPILERS="CC=gcc-8 && CXX=g++-8"
- os: linux
dist: xenial
addons:
apt:
packages:
- mingw-w64
env:
- COMPILERS="CC=x86_64-w64-mingw32-gcc-posix && CXX=x86_64-w64-mingw32-g++-posix"
env:
global:
- CFLAGS="-O3 -g -Wall -Wextra -Werror -pedantic -Wno-long-long -Wno-missing-braces"
- CXXFLAGS="-O3 -g -Wall -Wextra -Werror -pedantic -Wno-long-long -Wno-missing-braces"
before_install:
# Overwrite default CC and CXX
- eval "${COMPILERS}"
script:
- |
if [ "$CXX" = "x86_64-w64-mingw32-g++-posix" ]
then
make -j4
make example
make instrumented_benchmark
elif [ "${TRAVIS_OS_NAME}" = "linux" ]
then
make -j4
make example
make instrumented_benchmark
./example
./bench 100000 10
elif [ "${TRAVIS_OS_NAME}" = "osx" ]
then
make -j4
make example
make instrumented_benchmark
./example
./bench 100000 10
fi