This repository has been archived by the owner on Mar 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
169 lines (158 loc) · 4.19 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
matrix:
include:
# windows msvc C
- name: "Windows / MSVC / C"
os: windows
language: c
script:
- cmd.exe //C 'tools\\travis_build_msvc.bat' c
# windows msvc C++
- name: "Windows / MSVC / C++"
os: windows
language: cpp
script:
- cmd.exe //C 'tools\\travis_build_msvc.bat' cpp
# windows clang
- name: "Windows / Clang"
os: windows
language: c
compiler: clang
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh clang
after_success:
- build/example_basic_${CC}.exe
- build/example_suite_${CC}.exe
# windows clang++
- name: "Windows / Clang++"
os: windows
language: cpp
compiler: clang
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh clang++
after_success:
- build/example_cpp_${CXX}.exe
# windows gcc
- name: "Windows / GCC"
os: windows
language: c
compiler: gcc
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh gcc
after_success:
- build/example_basic_${CC}.exe
- build/example_suite_${CC}.exe
# windows g++
- name: "Windows / G++"
os: windows
language: cpp
compiler: gcc
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh g++
after_success:
- build/example_cpp_${CXX}.exe
# linux clang
- name: "Linux / Clang"
os: linux
language: c
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- clang-7
before_install:
- CC=clang-7
- CXX=clang++-7
install:
- ${CC} --version
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh ${CC}
after_success:
- build/example_basic_${CC}.exe
- build/example_suite_${CC}.exe
# linux clang++
- name: "Linux / Clang++"
os: linux
language: cpp
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- clang-7
before_install:
- CC=clang-7
- CXX=clang++-7
install:
- ${CC} --version
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh ${CXX}
after_success:
- build/example_cpp_${CXX}.exe
# linux gcc
- name: "Linux / GCC"
os: linux
language: c
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- gcc-8
before_install:
- CC=gcc-8
- CXX=g++-8
install:
- ${CC} --version
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh ${CC}
after_success:
- build/example_basic_${CC}.exe
- build/example_suite_${CC}.exe
# linux g++
- name: "Linux / G++"
os: linux
language: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
before_install:
- CC=gcc-8
- CXX=g++-8
install:
- ${CC} --version
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh ${CXX}
after_success:
- build/example_cpp_${CXX}.exe
# macOS C
- name: "macOS / C"
os: osx
osx_image: xcode10.1
language: c
compiler: clang
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh ${CC}
after_success:
- build/example_basic_${CC}.exe
- build/example_suite_${CC}.exe
# macOS C++
- name: "macOS / C++"
os: osx
osx_image: xcode10.1
language: cpp
compiler: clang
before_script: chmod +x tools/build_clang_gcc.sh
script: ./tools/build_clang_gcc.sh ${CXX}
after_success:
- build/example_cpp_${CXX}.exe