OSDN Git Service

Please enter the commit message for your changes. Lines starting
[eos/base.git] / util / src / TclTk / tcl8.6.12 / .travis.yml
1 language: c
2 addons:
3   apt:
4     sources:
5       - ubuntu-toolchain-r-test
6     packages:
7       - binutils-mingw-w64-i686
8       - binutils-mingw-w64-x86-64
9       - gcc-mingw-w64
10       - gcc-mingw-w64-base
11       - gcc-mingw-w64-i686
12       - gcc-mingw-w64-x86-64
13       - gcc-multilib
14 jobs:
15   include:
16 # Testing on Linux GCC
17     - name: "Linux/GCC/Shared"
18       os: linux
19       dist: focal
20       compiler: gcc
21       env:
22         - BUILD_DIR=unix
23     - name: "Linux/GCC/Shared: UTF_MAX=4"
24       os: linux
25       dist: focal
26       compiler: gcc
27       env:
28         - BUILD_DIR=unix
29         - CFGOPT=CFLAGS=-DTCL_UTF_MAX=4
30     - name: "Linux/GCC/Shared: UTF_MAX=6"
31       os: linux
32       dist: focal
33       compiler: gcc
34       env:
35         - BUILD_DIR=unix
36         - CFGOPT=CFLAGS=-DTCL_UTF_MAX=6
37     - name: "Linux/GCC/Static"
38       os: linux
39       dist: focal
40       compiler: gcc
41       env:
42         - CFGOPT="--disable-shared"
43         - BUILD_DIR=unix
44     - name: "Linux/GCC/Debug"
45       os: linux
46       dist: focal
47       compiler: gcc
48       env:
49         - BUILD_DIR=unix
50         - CFGOPT="--enable-symbols"
51     - name: "Linux/GCC/Mem-Debug"
52       os: linux
53       dist: focal
54       compiler: gcc
55       env:
56         - BUILD_DIR=unix
57         - CFGOPT="--enable-symbols=mem"
58 # Newer/Older versions of GCC
59     - name: "Linux/GCC 10/Shared"
60       os: linux
61       dist: focal
62       compiler: gcc-10
63       addons:
64         apt:
65           packages:
66             - g++-10
67       env:
68         - BUILD_DIR=unix
69     - name: "Linux/GCC 5/Shared"
70       os: linux
71       dist: bionic
72       compiler: gcc-5
73       addons:
74         apt:
75           packages:
76             - g++-5
77       env:
78         - BUILD_DIR=unix
79 # Testing on Linux Clang
80     - name: "Linux/Clang/Shared"
81       os: linux
82       dist: focal
83       compiler: clang
84       env:
85         - BUILD_DIR=unix
86     - name: "Linux/Clang/Static"
87       os: linux
88       dist: focal
89       compiler: clang
90       env:
91         - CFGOPT="--disable-shared"
92         - BUILD_DIR=unix
93     - name: "Linux/Clang/Debug"
94       os: linux
95       dist: focal
96       compiler: clang
97       env:
98         - BUILD_DIR=unix
99         - CFGOPT="--enable-symbols"
100     - name: "Linux/Clang/Mem-Debug"
101       os: linux
102       dist: focal
103       compiler: clang
104       env:
105         - BUILD_DIR=unix
106         - CFGOPT="--enable-symbols=mem"
107 # Testing on Mac, various styles
108     - name: "macOS/Xcode 12/Shared"
109       os: osx
110       osx_image: xcode12.2
111       env:
112         - BUILD_DIR=macosx
113       install: []
114       script: &mactest
115         - make all
116         # The styles=develop avoids some weird problems on OSX
117         - make test styles=develop
118     - name: "macOS/Xcode 12/Shared/Unix-like"
119       os: osx
120       osx_image: xcode12.2
121       env:
122         - BUILD_DIR=unix
123         - CFGOPT="--enable-dtrace"
124 # Newer MacOS versions
125     - name: "macOS/Xcode 12/Universal Apps/Shared"
126       os: osx
127       osx_image: xcode12u
128       env:
129         - BUILD_DIR=macosx
130       install: []
131       script: *mactest
132 # Older MacOS versions
133     - name: "macOS/Xcode 11/Shared"
134       os: osx
135       osx_image: xcode11.7
136       env:
137         - BUILD_DIR=macosx
138       install: []
139       script: *mactest
140     - name: "macOS/Xcode 10/Shared"
141       os: osx
142       osx_image: xcode10.3
143       env:
144         - BUILD_DIR=macosx
145       install: []
146       script: *mactest
147     - name: "macOS/Xcode 9/Shared"
148       os: osx
149       osx_image: xcode9.4
150       env:
151         - BUILD_DIR=macosx
152       install: []
153       script: *mactest
154     - name: "macOS/Xcode 8/Shared"
155       os: osx
156       osx_image: xcode8.3
157       env:
158         - BUILD_DIR=macosx
159       install: []
160       script: *mactest
161 # Test with mingw-w64 cross-compile
162 # Doesn't run tests because wine is only an imperfect Windows emulation
163     - name: "Linux-cross-Windows/GCC/Shared/no test"
164       os: linux
165       dist: focal
166       compiler: x86_64-w64-mingw32-gcc
167       env:
168         - BUILD_DIR=win
169         - CFGOPT="--host=x86_64-w64-mingw32 --enable-64bit"
170       script: &crosstest
171         - make all tcltest
172         # Include a high visibility marker that tests are skipped outright
173         - >
174           echo "`tput setaf 3`SKIPPED TEST: CROSS COMPILING`tput sgr0`"
175 # Test with mingw-w64 (32 bit) cross-compile
176 # Doesn't run tests because wine is only an imperfect Windows emulation
177     - name: "Linux-cross-Windows-32/GCC/Shared/no test"
178       os: linux
179       dist: focal
180       compiler: i686-w64-mingw32-gcc
181       env:
182         - BUILD_DIR=win
183         - CFGOPT=--host=i686-w64-mingw32
184       script: *crosstest
185 # Test on Windows with MSVC native
186     - name: "Windows/MSVC/Shared"
187       os: windows
188       compiler: cl
189       env: &vcenv
190         - BUILD_DIR=win
191         - VCDIR="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build"
192       before_install: &vcpreinst
193         - touch generic/tclStubInit.c generic/tclOOStubInit.c
194         - PATH="$PATH:$VCDIR"
195         - cd ${BUILD_DIR}
196       install: []
197       script:
198         - cmd.exe //C vcvarsall.bat x64 '&&' nmake '-f' makefile.vc all tcltest
199         - cmd.exe //C vcvarsall.bat x64 '&&' nmake '-f' makefile.vc test
200     - name: "Windows/MSVC/Shared: UTF_MAX=4"
201       os: windows
202       compiler: cl
203       env: *vcenv
204       before_install: *vcpreinst
205       install: []
206       script:
207         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=utfmax' '-f' makefile.vc all tcltest
208         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=utfmax' '-f' makefile.vc test
209     - name: "Windows/MSVC/Static"
210       os: windows
211       compiler: cl
212       env: *vcenv
213       before_install: *vcpreinst
214       install: []
215       script:
216         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=static,msvcrt' '-f' makefile.vc all tcltest
217         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=static,msvcrt' '-f' makefile.vc test
218     - name: "Windows/MSVC/StaticPackage"
219       os: windows
220       compiler: cl
221       env: *vcenv
222       before_install: *vcpreinst
223       install: []
224       script:
225         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=static,staticpkg,msvcrt' '-f' makefile.vc all tcltest
226         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=static,staticpkg,msvcrt' '-f' makefile.vc test
227     - name: "Windows/MSVC/Debug"
228       os: windows
229       compiler: cl
230       env: *vcenv
231       before_install: *vcpreinst
232       install: []
233       script:
234         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=symbols' '-f' makefile.vc all tcltest
235         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'OPTS=symbols' '-f' makefile.vc test
236     - name: "Windows/MSVC/Mem-Debug"
237       os: windows
238       compiler: cl
239       env: *vcenv
240       before_install: *vcpreinst
241       install: []
242       script:
243         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'STATS=memdbg' '-f' makefile.vc all tcltest
244         - cmd.exe //C vcvarsall.bat x64 '&&' nmake 'STATS=memdbg' '-f' makefile.vc test
245 # Test on Windows with MSVC native (32-bit)
246     - name: "Windows/MSVC-x86/Shared"
247       os: windows
248       compiler: cl
249       env: *vcenv
250       before_install: *vcpreinst
251       install: []
252       script:
253         - cmd.exe //C vcvarsall.bat x86 '&&' nmake '-f' makefile.vc all tcltest
254         - cmd.exe //C vcvarsall.bat x86 '&&' nmake '-f' makefile.vc test
255     - name: "Windows/MSVC-x86/Shared: UTF_MAX=4"
256       os: windows
257       compiler: cl
258       env: *vcenv
259       before_install: *vcpreinst
260       install: []
261       script:
262         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'OPTS=utfmax' '-f' makefile.vc all tcltest
263         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'OPTS=utfmax' '-f' makefile.vc test
264     - name: "Windows/MSVC-x86/Static"
265       os: windows
266       compiler: cl
267       env: *vcenv
268       before_install: *vcpreinst
269       install: []
270       script:
271         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'OPTS=static,msvcrt' '-f' makefile.vc all tcltest
272         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'OPTS=static,msvcrt' '-f' makefile.vc test
273     - name: "Windows/MSVC-x86/Debug"
274       os: windows
275       compiler: cl
276       env: *vcenv
277       before_install: *vcpreinst
278       install: []
279       script:
280         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'OPTS=symbols' '-f' makefile.vc all tcltest
281         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'OPTS=symbols' '-f' makefile.vc test
282     - name: "Windows/MSVC-x86/Mem-Debug"
283       os: windows
284       compiler: cl
285       env: *vcenv
286       before_install: *vcpreinst
287       install: []
288       script:
289         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'STATS=memdbg' '-f' makefile.vc all tcltest
290         - cmd.exe //C vcvarsall.bat x86 '&&' nmake 'STATS=memdbg' '-f' makefile.vc test
291 # Test on Windows with GCC native
292     - name: "Windows/GCC/Shared"
293       os: windows
294       compiler: gcc
295       env:
296         - BUILD_DIR=win
297         - CFGOPT="--enable-64bit"
298       before_install: &makepreinst
299         - touch generic/tclStubInit.c generic/tclOOStubInit.c
300         - choco install -y make
301         - cd ${BUILD_DIR}
302     - name: "Windows/GCC/Shared: UTF_MAX=4"
303       os: windows
304       compiler: gcc
305       env:
306         - BUILD_DIR=win
307         - CFGOPT="--enable-64bit CFLAGS=-DTCL_UTF_MAX=4"
308       before_install: *makepreinst
309     - name: "Windows/GCC/Static"
310       os: windows
311       compiler: gcc
312       env:
313         - BUILD_DIR=win
314         - CFGOPT="--enable-64bit --disable-shared"
315       before_install: *makepreinst
316     - name: "Windows/GCC/Debug"
317       os: windows
318       compiler: gcc
319       env:
320         - BUILD_DIR=win
321         - CFGOPT="--enable-64bit --enable-symbols"
322       before_install: *makepreinst
323     - name: "Windows/GCC/Mem-Debug"
324       os: windows
325       compiler: gcc
326       env:
327         - BUILD_DIR=win
328         - CFGOPT="--enable-64bit --enable-symbols=mem"
329       before_install: *makepreinst
330 # Test on Windows with GCC native (32-bit)
331     - name: "Windows/GCC-x86/Shared"
332       os: windows
333       compiler: gcc
334       env:
335         - BUILD_DIR=win
336       before_install: *makepreinst
337     - name: "Windows/GCC-x86/Shared: UTF_MAX=4"
338       os: windows
339       compiler: gcc
340       env:
341         - BUILD_DIR=win
342         - CFGOPT="CFLAGS=-DTCL_UTF_MAX=4"
343       before_install: *makepreinst
344     - name: "Windows/GCC-x86/Static"
345       os: windows
346       compiler: gcc
347       env:
348         - BUILD_DIR=win
349         - CFGOPT="--disable-shared"
350       before_install: *makepreinst
351     - name: "Windows/GCC-x86/Debug"
352       os: windows
353       compiler: gcc
354       env:
355         - BUILD_DIR=win
356         - CFGOPT="--enable-symbols"
357       before_install: *makepreinst
358     - name: "Windows/GCC-x86/Mem-Debug"
359       os: windows
360       compiler: gcc
361       env:
362         - BUILD_DIR=win
363         - CFGOPT="--enable-symbols=mem"
364       before_install: *makepreinst
365 # "make dist" only
366     - name: "Linux: make dist"
367       os: linux
368       dist: focal
369       compiler: gcc
370       env:
371         - BUILD_DIR=unix
372       script:
373         - make dist
374 before_install:
375   - touch generic/tclStubInit.c generic/tclOOStubInit.c
376   - cd ${BUILD_DIR}
377 install:
378   - mkdir "$HOME/install dir"
379   - ./configure ${CFGOPT} "--prefix=$HOME/install dir" || (cat config.log && exit 1)
380 before_script:
381   - export ERROR_ON_FAILURES=1
382 script:
383   - make all tcltest || echo "Something wrong, maybe a hickup, let's try again"
384   - make test
385   - make install