forked from Bill-Gray/PDCursesMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
308 lines (296 loc) · 12.3 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
language: c
_job_includes:
- &ow19_os2
os: linux
compiler: ow19
arch: os2
- &ow19_dos
os: linux
compiler: ow19
arch: dos
- &ow19_dos32
os: linux
compiler: ow19
arch: dos32
- &ow19_win32
os: linux
compiler: ow19
arch: win32
- &ow20_os2
os: linux
compiler: ow20
arch: os2
- &ow20_dos
os: linux
compiler: ow20
arch: dos
- &ow20_dos32
os: linux
compiler: ow20
arch: dos32
- &ow20_win32
os: linux
compiler: ow20
arch: win32
os:
- linux
- osx
compiler:
- gcc
- clang
arch:
- amd64
env:
jobs:
- BUILD_TYPE=Debug CMAKE_ARGS=""
- BUILD_TYPE=Release CMAKE_ARGS=""
- BUILD_TYPE=MinSizeRel CMAKE_ARGS=""
- BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_UTF8=ON"
- BUILD_TYPE=Release CMAKE_ARGS="-DPDC_UTF8=ON"
- BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_UTF8=ON"
- BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_WIDE=ON"
- BUILD_TYPE=Release CMAKE_ARGS="-DPDC_WIDE=ON"
- BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_WIDE=ON"
jobs:
include:
# Open Watcom 1.9
# OS/2
- <<: *ow19_os2
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_OS2_BUILD=ON" TRAVIS_ARCH=os2
- <<: *ow19_os2
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_OS2_BUILD=ON" TRAVIS_ARCH=os2
- <<: *ow19_os2
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_OS2_BUILD=ON" TRAVIS_ARCH=os2
# DOS 16-bit
- <<: *ow19_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow19_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos32
# DOSVGA project
# DOS 16-bit
- <<: *ow19_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow19_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos32
# DOSVGA project WIDE version
# DOS 16-bit
- <<: *ow19_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow19_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos32
# VT project
# DOS 16-bit
- <<: *ow19_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow19_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow19_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow19_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos32
# WIN32 projects WIDE version
- <<: *ow19_win32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_WIDE=ON" TRAVIS_ARCH=win32
- <<: *ow19_win32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_WIDE=ON" TRAVIS_ARCH=win32
- <<: *ow19_win32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_WIDE=ON" TRAVIS_ARCH=win32
# WIN32 projects UTF8 version
- <<: *ow19_win32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_UTF8=ON" TRAVIS_ARCH=win32
- <<: *ow19_win32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_UTF8=ON" TRAVIS_ARCH=win32
- <<: *ow19_win32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_UTF8=ON" TRAVIS_ARCH=win32
# Open Watcom 2.0
# OS/2
- <<: *ow20_os2
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_OS2_BUILD=ON" TRAVIS_ARCH=os2
- <<: *ow20_os2
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_OS2_BUILD=ON" TRAVIS_ARCH=os2
- <<: *ow20_os2
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_OS2_BUILD=ON" TRAVIS_ARCH=os2
# DOS 16-bit
- <<: *ow20_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow20_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOS_BUILD=ON" TRAVIS_ARCH=dos32
# DOSVGA project
# DOS 16-bit
- <<: *ow20_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow20_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON" TRAVIS_ARCH=dos32
# DOSVGA project WIDE version
# DOS 16-bit
- <<: *ow20_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow20_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVGA_BUILD=ON -DPDC_WIDE=ON" TRAVIS_ARCH=dos32
# VT project
# DOS 16-bit
- <<: *ow20_dos
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos
- <<: *ow20_dos
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos
# DOS 32-bit
- <<: *ow20_dos32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos32
- <<: *ow20_dos32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_DOSVT_BUILD=ON" TRAVIS_ARCH=dos32
# WIN32 projects WIDE version
- <<: *ow20_win32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_WIDE=ON" TRAVIS_ARCH=win32
- <<: *ow20_win32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_WIDE=ON" TRAVIS_ARCH=win32
- <<: *ow20_win32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_WIDE=ON" TRAVIS_ARCH=win32
# WIN32 projects UTF8 version
- <<: *ow20_win32
env: BUILD_TYPE=Debug CMAKE_ARGS="-DPDC_UTF8=ON" TRAVIS_ARCH=win32
- <<: *ow20_win32
env: BUILD_TYPE=Release CMAKE_ARGS="-DPDC_UTF8=ON" TRAVIS_ARCH=win32
- <<: *ow20_win32
env: BUILD_TYPE=MinSizeRel CMAKE_ARGS="-DPDC_UTF8=ON" TRAVIS_ARCH=win32
install:
# install required version of CMake
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
ARTIFACT_NAME=cmake-3.11.0-Linux-x86_64 &&
ARTIFACT_URL=https://cmake.org/files/v3.11/${ARTIFACT_NAME}.tar.gz &&
ARTIFACT_MD5=96d67e21f0983ebf0fffc5b106ec338c &&
travis_retry wget --no-check-certificate -P ${TRAVIS_TMPDIR} ${ARTIFACT_URL} &&
echo "${ARTIFACT_MD5} *${TRAVIS_TMPDIR}/${ARTIFACT_NAME}.tar.gz" > ${TRAVIS_TMPDIR}/cmake_md5.txt &&
md5sum -c ${TRAVIS_TMPDIR}/cmake_md5.txt &&
mkdir -p ${TRAVIS_HOME}/cmake &&
tar -xf ${TRAVIS_TMPDIR}/${ARTIFACT_NAME}.tar.gz -C ${TRAVIS_HOME}/cmake --strip-components=1 --show-transformed-names ${ARTIFACT_NAME} &&
export PATH=${TRAVIS_HOME}/cmake:${TRAVIS_HOME}/cmake/bin:$PATH;
fi
# install Open Watcom 1.9
- if [[ "${TRAVIS_COMPILER}" == "ow19" ]]; then
ARTIFACT_NAME=open-watcom-c-linux-1.9 &&
ARTIFACT_URL=https://github.com/open-watcom/open-watcom-1.9/releases/download/ow1.9/${ARTIFACT_NAME} &&
OPEN_WATCOM_BIN=binl &&
travis_retry wget --no-check-certificate -P ${TRAVIS_TMPDIR} ${ARTIFACT_URL} &&
export WATCOM=${TRAVIS_HOME}/watcom &&
mkdir -p ${WATCOM} &&
unzip -q ${TRAVIS_TMPDIR}/${ARTIFACT_NAME} -d ${WATCOM} &&
chmod +x ${WATCOM}/${OPEN_WATCOM_BIN}/* &&
export PATH=${WATCOM}/binl:${WATCOM}/binw:$PATH;
fi
# install Open Watcom 2.0
- if [[ "${TRAVIS_COMPILER}" == "ow20" ]]; then
ARTIFACT_NAME=open-watcom-2_0-c-linux-x64 &&
ARTIFACT_URL=https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/${ARTIFACT_NAME} &&
OPEN_WATCOM_BIN=binl64 &&
travis_retry wget --no-check-certificate -P ${TRAVIS_TMPDIR} ${ARTIFACT_URL} &&
export WATCOM=${TRAVIS_HOME}/watcom &&
mkdir -p ${WATCOM} &&
unzip -q ${TRAVIS_TMPDIR}/${ARTIFACT_NAME} -d ${WATCOM} &&
chmod +x ${WATCOM}/${OPEN_WATCOM_BIN}/* &&
export PATH=${WATCOM}/binl64:${WATCOM}/binw:$PATH;
fi
# install ncurses on Linux, not for OpenWatcom toolchain
- if [[ "${TRAVIS_OS_NAME}" == "linux" && "${TRAVIS_COMPILER}" != "ow19" && "${TRAVIS_COMPILER}" != "ow20" ]];
then sudo apt-get -y install libncurses5-dev libncursesw5-dev libxaw7-dev; fi
# install ncurses on OSX
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]];
then brew install ncurses; fi
# setup Open Watcom for cross-compilation
- if [[ "${TRAVIS_ARCH}" == "os2" ]]; then
export TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=${TRAVIS_BUILD_DIR}/cmake/watcom_open_os2v2_toolchain.cmake" &&
export INCLUDE=${WATCOM}/h:${WATCOM}/h/os2;
fi
- if [[ "${TRAVIS_ARCH}" == "dos" ]]; then
export TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=${TRAVIS_BUILD_DIR}/cmake/watcom_open_dos16_toolchain.cmake" &&
export INCLUDE=${WATCOM}/h;
fi
- if [[ "${TRAVIS_ARCH}" == "dos32" ]]; then
export TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=${TRAVIS_BUILD_DIR}/cmake/watcom_open_dos32_toolchain.cmake" &&
export INCLUDE=${WATCOM}/h;
fi
- if [[ "${TRAVIS_ARCH}" == "win32" ]]; then
export TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=${TRAVIS_BUILD_DIR}/cmake/watcom_open_win32_toolchain.cmake" &&
export INCLUDE=${WATCOM}/h:${WATCOM}/h/nt;
fi
- if [[ "${BUILD_TYPE}" == "Debug" ]]; then
export CMAKE_DEBUG_ARGS="-DPDCDEBUG=ON";
fi
- cmake --version
before_script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir build && cd build
- if [[ "${TRAVIS_COMPILER}" == "ow19" || "${TRAVIS_COMPILER}" == "ow20" ]]; then
cmake -G "Watcom WMake" -DCMAKE_VERBOSE_MAKEFILE=FALSE -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DPDC_BUILD_SHARED=OFF -DPDC_SDL2_BUILD=OFF -DPDC_SDL2_DEPS_BUILD=OFF ${TOOLCHAIN_FILE}
-DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/build/dist ${CMAKE_DEBUG_ARGS}
${CMAKE_ARGS} .. ;
else
cmake -DCMAKE_VERBOSE_MAKEFILE=FALSE -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
-DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/build/dist ${CMAKE_DEBUG_ARGS}
${CMAKE_ARGS} .. ;
fi
script:
- cmake --build . --config ${BUILD_TYPE} --target install