(travis) Display TAP directives on single threaded CI runs
[dbsrgits/DBIx-Class.git] / .travis.yml
1 # Some overall notes on how this works
2 #
3 # * We smoke using the system provided latest, and custom built "oddball perls"
4 # The reason for not having a blanket matrix is to conserve travis resources
5 # as a full DBIC depchain isn't cheap
6 #
7 # * Minimum perl officially supported by DBIC is 5.8.3. This *includes* the
8 # basic depchain. On failure either attempt to fix it or bring it to the
9 # attention of the maintainer. *DO NOT* disable 5.8 testing - it is here for
10 # a very good reason
11 #
12 # the entire run times out after 50 minutes, or after 5 minutes without
13 # console output
14
15 #
16 # Smoke all branches except for blocked* and wip/*
17 #
18 # Additionally master does not smoke with bleadperl
19 # ( implemented in maint/travis-ci_scripts/10_before_install.bash )
20 #
21 branches:
22   except:
23     - /^wip\//
24     - /^blocked/
25
26 notifications:
27   irc:
28     channels:
29       - "irc.perl.org#dbic-smoke"
30     template:
31       - "%{branch}#%{build_number} by %{author}: %{message} (%{build_url})"
32     on_success: change
33     on_failure: always
34     use_notice: true
35
36   email:
37     recipients:
38       - ribasushi@cpan.org
39     on_success: change
40     on_failure: always
41
42 addons:
43   apt:
44     packages:
45       - libapp-nopaste-perl
46       - net-tools
47
48 # This is probably a net-loss for setup etc - a bare 'C' will likely fare much better
49 language: perl
50
51 # Currently not trying osx: https://github.com/travis-ci/travis-ci/issues/2314
52 os: linux
53
54 # The defaults run under the more rapid container infra. The hardware is
55 # actually *much* slower, but the jobs start much faster, for more info see
56 # https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
57 # Combined with 'fast_finish' this will result in an "uh-oh" email as early
58 # as possible
59 dist: precise
60 sudo: false
61 env: CLEANTEST=true
62
63 perl:
64   - "5.8"
65   - "5.10"
66   - "5.22-extras"
67
68 matrix:
69   fast_finish: true
70
71   include:
72
73     # Same as the "master matrix" above, frozen under older dist/infrastructure
74     # In genereal it is strongly recommended to keep things on the older
75     # version indefinitely - there is little value in-depth smoking on
76     # more recent software stacks
77     - perl: "5.8"
78       sudo: required
79       dist: precise
80       env:
81         - CLEANTEST=false
82
83     - perl: "5.10"
84       sudo: required
85       dist: precise
86       env:
87         - CLEANTEST=false
88
89     - perl: "5.22-extras"
90       sudo: required
91       dist: precise
92       env:
93         - CLEANTEST=false
94
95     # CLEANTEST of minimum supported with non-tracing poisoning, single thread (hence the sudo)
96     - perl: "5.8.3_nt_mb"
97       sudo: required
98       dist: precise
99       env:
100         - VCPU_USE=1
101         - CLEANTEST=true
102         - POISON_ENV=true
103         - DBIC_TRACE_PROFILE=console_monochrome
104         - BREWVER=5.8.3
105         - BREWOPTS="-Dusemorebits"
106
107     # Full Test of minimum supported without threads with plain poisoned trace
108     - perl: "5.8.3_nt"
109       sudo: required
110       dist: precise
111       # run these under legacy - great simulation of low memory env
112       group: legacy
113       env:
114         - CLEANTEST=false
115         - POISON_ENV=true
116         - DBIC_TRACE=1
117         - BREWVER=5.8.3
118
119     # Full Test of minimum supported with threads with non-tracing poisoning
120     - perl: "5.8.5_thr"
121       sudo: required
122       dist: precise
123       # run these under legacy - great simulation of low memory env
124       group: legacy
125       env:
126         - CLEANTEST=false
127         - POISON_ENV=true
128         - DBIC_TRACE_PROFILE=console
129         - BREWVER=5.8.5
130         - BREWOPTS="-Duseithreads"
131
132     # CLEANTEST of solaris-like perl with non-tracing poisoning
133     - perl: "5.8.4_nt"
134       sudo: false
135       dist: precise
136       env:
137         - CLEANTEST=true
138         - POISON_ENV=true
139         - DBIC_TRACE_PROFILE=console
140         - BREWVER=5.8.4
141
142     # Full test: this particular perl is quite widespread, single thread
143     - perl: "5.8.8_thr"
144       sudo: required
145       dist: precise
146       env:
147         - VCPU_USE=1
148         - CLEANTEST=false
149         - BREWVER=5.8.8
150         - BREWOPTS="-Duseithreads"
151
152     # CLEANTEST: this is the perl suse ships, with env poisoning
153     - perl: "5.10.0_thr_dbg"
154       sudo: false
155       dist: precise
156       env:
157         - CLEANTEST=true
158         - POISON_ENV=true
159         - BREWVER=5.10.0
160         - BREWOPTS="-DDEBUGGING -Duseithreads"
161
162     # CLEANTEST: this one is in a number of debian-based LTS (test a sane CPAN.pm, single thread)
163     - perl: "5.14.2_thr_mb"
164       sudo: required
165       dist: precise
166       env:
167         - VCPU_USE=1
168         - CLEANTEST=true
169         - BREWVER=5.14.2
170         - BREWOPTS="-Duseithreads -Dusemorebits"
171
172     ###
173     # some permutations of tracing and envvar poisoning
174
175     - perl: "5.12.3_thr"
176       sudo: false
177       dist: precise
178       env:
179         - CLEANTEST=true
180         - POISON_ENV=true
181         - DBIC_TRACE=1
182         - DBIC_MULTICREATE_DEBUG=1
183         - DBIC_STORAGE_RETRY_DEBUG=1
184         - DBIC_TRACE_PROFILE=console
185         - BREWVER=5.12.3
186         - BREWOPTS="-Duseithreads"
187
188     - perl: "5.16.3_thr_mb"
189       sudo: required
190       dist: precise
191       env:
192         - CLEANTEST=false
193         - POISON_ENV=true
194         - DBIC_TRACE=1
195         - BREWVER=5.16.3
196         - BREWOPTS="-Duseithreads -Dusemorebits"
197
198     - perl: "5.18-extras"
199       sudo: required
200       # explicit new infra spec preparing for a future forced upgrade
201       dist: trusty
202       env:
203         - CLEANTEST=false
204         - POISON_ENV=true
205         - DBIC_TRACE=1
206         - DBIC_TRACE_PROFILE=console_monochrome
207         - DBICTEST_VIA_REPLICATED=0
208         - DBICTEST_VERSION_WARNS_INDISCRIMINATELY=1
209
210     ###
211     # Start of the allow_failures block
212
213     # threaded oldest possible with blead CPAN
214     - perl: "devcpan_5.8.1_thr_mb"
215       sudo: false
216       dist: precise
217       env:
218         - CLEANTEST=true
219         - DEVREL_DEPS=true
220         - BREWVER=5.8.1
221         - BREWOPTS="-Duseithreads -Dusemorebits"
222
223     # oldest possible with blead CPAN with poisoning and plain trace
224     - perl: "devcpan_5.8.1"
225       sudo: false
226       dist: precise
227       env:
228         - CLEANTEST=true
229         - DEVREL_DEPS=true
230         - POISON_ENV=true
231         - DBIC_TRACE=1
232         - DBICTEST_VERSION_WARNS_INDISCRIMINATELY=1
233         - BREWVER=5.8.1
234
235     # 5.8.3 with blead CPAN
236     - perl: "devcpan_5.8.3_mb"
237       sudo: required
238       # explicit new infra spec preparing for a future forced upgrade
239       dist: trusty
240       env:
241         - CLEANTEST=false
242         - DEVREL_DEPS=true
243         - BREWVER=5.8.3
244         - BREWOPTS="-Dusemorebits"
245
246     # 5.8.7 threaded with blead CPAN with non-tracing poisoning
247     - perl: "devcpan_5.8.7_thr"
248       sudo: false
249       dist: precise
250       env:
251         - CLEANTEST=true
252         - DEVREL_DEPS=true
253         - POISON_ENV=true
254         - BREWVER=5.8.7
255         - BREWOPTS="-Duseithreads"
256
257     # 5.8.8 threaded MB (exercises P5#72210)
258     - perl: "devcpan_5.8.8_thr_mb"
259       sudo: false
260       dist: precise
261       env:
262         - CLEANTEST=true
263         - DBICTEST_VERSION_WARNS_INDISCRIMINATELY=1
264         - DEVREL_DEPS=true
265         - BREWVER=5.8.8
266         - BREWOPTS="-Duseithreads -Dusemorebits"
267
268     # 5.10.0 threaded with blead CPAN
269     - perl: "devcpan_5.10.0_thr_mb"
270       sudo: false
271       dist: precise
272       env:
273         - CLEANTEST=true
274         - DEVREL_DEPS=true
275         - BREWVER=5.10.0
276         - BREWOPTS="-Duseithreads -Dusemorebits"
277
278     # 5.12.1 with blead CPAN
279     - perl: "devcpan_5.12.1_thr"
280       sudo: false
281       dist: precise
282       env:
283         - CLEANTEST=true
284         - DEVREL_DEPS=true
285         - BREWVER=5.12.1
286         - BREWOPTS="-Duseithreads"
287
288     # bleadperl with stock CPAN, full depchain test with non-tracing poisoning, single thread
289     - perl: "bleadperl"
290       sudo: required
291       dist: precise
292       env:
293         - VCPU_USE=1
294         - CLEANTEST=true
295         - POISON_ENV=true
296         - BREWVER=blead
297
298     # bleadperl with blead CPAN, single thread
299     - perl: "devcpan_bleadperl_thr_mb"
300       sudo: required
301       # explicitly do not specify dist - see what the default does
302       env:
303         - VCPU_USE=1
304         - CLEANTEST=false
305         - DEVREL_DEPS=true
306         - BREWVER=blead
307         - BREWOPTS="-Duseithreads -Dusemorebits"
308
309     # CLEANTEST of http://schplog.schmorp.de/2015-06-06-a-stable-perl.html with non-tracing poisoning
310     - perl: "schmorp_stableperl_thr_mb"
311       sudo: false
312       dist: precise
313       env:
314         - CLEANTEST=true
315         - POISON_ENV=true
316         - BREWVER=schmorp_stableperl
317         - BREWOPTS="-Duseithreads -Dusemorebits"
318
319   # which ones of the above can fail
320   allow_failures:
321
322     # these run with various dev snapshots - allowed to fail
323     - perl: devcpan_5.8.1_thr_mb
324     - perl: devcpan_5.8.1
325     - perl: devcpan_5.8.3_mb
326     - perl: devcpan_5.8.7_thr
327     - perl: devcpan_5.8.8_thr_mb
328     - perl: devcpan_5.10.0_thr_mb
329     - perl: devcpan_5.12.1_thr
330     - perl: bleadperl
331     - perl: devcpan_bleadperl_thr_mb
332     - perl: schmorp_stableperl_thr_mb
333
334
335 ###
336 ### For the following two phases -e is *set*
337 ###
338
339 before_install:
340   # common functions for all run phases below
341   #
342   # this is an exporter - sourcing it is crucial
343   # among other things it also sets -e
344   #
345   - source maint/travis-ci_scripts/common.bash
346
347   # Sets global envvars, downloads/configures debs based on CLEANTEST
348   # Sets extra DBICTEST_* envvars
349   #
350   # this is an exporter - sourcing it is crucial
351   #
352   - source maint/travis-ci_scripts/10_before_install.bash
353
354 install:
355   # Build and switch to a custom perl if requested
356   # Configure the perl env, preinstall some generic toolchain parts
357   # Possibly poison the environment
358   #
359   # this is an exporter - sourcing it is crucial
360   #
361   - source maint/travis-ci_scripts/20_install.bash
362
363 ###
364 ### From this point on -e is *unset*, rely on travis' error handling
365 ###
366   - set +e
367
368 before_script:
369   # Preinstall/install deps based on envvars/CLEANTEST
370   #
371   # need to invoke the after_failure script manually
372   # because 'after_failure' runs only after 'script' fails
373   #
374   - maint/getstatus maint/travis-ci_scripts/30_before_script.bash
375
376 script:
377   # Run actual tests
378   #
379   - maint/getstatus maint/travis-ci_scripts/40_script.bash
380
381 ###
382 ### Set -e back, work around https://github.com/travis-ci/travis-ci/issues/3533
383 ###
384   - set -e
385
386 after_success:
387   # Check if we can assemble a dist properly if not in CLEANTEST
388   #
389   - maint/getstatus maint/travis-ci_scripts/50_after_success.bash
390
391 after_failure:
392   # Final sysinfo printout on fail
393   #
394   - maint/getstatus maint/travis-ci_scripts/50_after_failure.bash
395
396 after_script:
397   # No tasks yet
398   #
399   #- maint/getstatus maint/travis-ci_scripts/60_after_script.bash