Throw away remnant commented out in 36099e8c
[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     # CLEANTEST: this particular perl is quite widespread
143     - perl: "5.8.8_thr"
144       sudo: false
145       dist: precise
146       env:
147         - CLEANTEST=true
148         - BREWVER=5.8.8
149         - BREWOPTS="-Duseithreads"
150
151     # CLEANTEST: this is the perl suse ships, with env poisoning
152     - perl: "5.10.0_thr_dbg"
153       sudo: false
154       dist: precise
155       env:
156         - CLEANTEST=true
157         - POISON_ENV=true
158         - BREWVER=5.10.0
159         - BREWOPTS="-DDEBUGGING -Duseithreads"
160
161     # CLEANTEST: this one is in a number of debian-based LTS (test a sane CPAN.pm, single thread)
162     - perl: "5.14.2_thr_mb"
163       sudo: required
164       dist: precise
165       env:
166         - VCPU_USE=1
167         - CLEANTEST=true
168         - BREWVER=5.14.2
169         - BREWOPTS="-Duseithreads -Dusemorebits"
170
171     ###
172     # some permutations of tracing and envvar poisoning
173
174     - perl: "5.12.3_thr"
175       sudo: false
176       dist: precise
177       env:
178         - CLEANTEST=true
179         - POISON_ENV=true
180         - DBIC_TRACE=1
181         - DBIC_MULTICREATE_DEBUG=1
182         - DBIC_STORAGE_RETRY_DEBUG=1
183         - DBIC_TRACE_PROFILE=console
184         - BREWVER=5.12.3
185         - BREWOPTS="-Duseithreads"
186
187     - perl: "5.16.3_thr_mb"
188       sudo: required
189       dist: precise
190       env:
191         - CLEANTEST=false
192         - POISON_ENV=true
193         - DBIC_TRACE=1
194         - BREWVER=5.16.3
195         - BREWOPTS="-Duseithreads -Dusemorebits"
196
197     - perl: "5.18-extras"
198       sudo: required
199       # explicit new infra spec preparing for a future forced upgrade
200       dist: trusty
201       env:
202         - CLEANTEST=false
203         - POISON_ENV=true
204         - DBIC_TRACE=1
205         - DBIC_TRACE_PROFILE=console_monochrome
206         - DBICTEST_VIA_REPLICATED=0
207         - DBICTEST_VERSION_WARNS_INDISCRIMINATELY=1
208
209     ###
210     # Start of the allow_failures block
211
212     # threaded oldest possible with blead CPAN
213     - perl: "devcpan_5.8.1_thr_mb"
214       sudo: false
215       dist: precise
216       env:
217         - CLEANTEST=true
218         - DEVREL_DEPS=true
219         - BREWVER=5.8.1
220         - BREWOPTS="-Duseithreads -Dusemorebits"
221
222     # oldest possible with blead CPAN with poisoning and plain trace
223     - perl: "devcpan_5.8.1"
224       sudo: false
225       dist: precise
226       env:
227         - CLEANTEST=true
228         - DEVREL_DEPS=true
229         - POISON_ENV=true
230         - DBIC_TRACE=1
231         - DBICTEST_VERSION_WARNS_INDISCRIMINATELY=1
232         - BREWVER=5.8.1
233
234     # 5.8.3 with blead CPAN
235     - perl: "devcpan_5.8.3_mb"
236       sudo: required
237       # explicit new infra spec preparing for a future forced upgrade
238       dist: trusty
239       env:
240         - CLEANTEST=false
241         - DEVREL_DEPS=true
242         - BREWVER=5.8.3
243         - BREWOPTS="-Dusemorebits"
244
245     # 5.8.7 threaded with blead CPAN with non-tracing poisoning
246     - perl: "devcpan_5.8.7_thr"
247       sudo: false
248       dist: precise
249       env:
250         - CLEANTEST=true
251         - DEVREL_DEPS=true
252         - POISON_ENV=true
253         - BREWVER=5.8.7
254         - BREWOPTS="-Duseithreads"
255
256     # 5.8.8 threaded MB (exercises P5#72210)
257     - perl: "devcpan_5.8.8_thr_mb"
258       sudo: false
259       dist: precise
260       env:
261         - CLEANTEST=true
262         - DBICTEST_VERSION_WARNS_INDISCRIMINATELY=1
263         - DEVREL_DEPS=true
264         - BREWVER=5.8.8
265         - BREWOPTS="-Duseithreads -Dusemorebits"
266
267     # 5.10.0 threaded with blead CPAN
268     - perl: "devcpan_5.10.0_thr_mb"
269       sudo: false
270       dist: precise
271       env:
272         - CLEANTEST=true
273         - DEVREL_DEPS=true
274         - BREWVER=5.10.0
275         - BREWOPTS="-Duseithreads -Dusemorebits"
276
277     # 5.12.1 with blead CPAN
278     - perl: "devcpan_5.12.1_thr"
279       sudo: false
280       dist: precise
281       env:
282         - CLEANTEST=true
283         - DEVREL_DEPS=true
284         - BREWVER=5.12.1
285         - BREWOPTS="-Duseithreads"
286
287     # bleadperl with stock CPAN, full depchain test with non-tracing poisoning, single thread
288     - perl: "bleadperl"
289       sudo: required
290       dist: precise
291       env:
292         - VCPU_USE=1
293         - CLEANTEST=true
294         - POISON_ENV=true
295         - BREWVER=blead
296
297     # bleadperl with blead CPAN
298     - perl: "devcpan_bleadperl_thr_mb"
299       sudo: required
300       # explicitly do not specify dist - see what the default does
301       env:
302         - CLEANTEST=false
303         - DEVREL_DEPS=true
304         - BREWVER=blead
305         - BREWOPTS="-Duseithreads -Dusemorebits"
306
307     # CLEANTEST of http://schplog.schmorp.de/2015-06-06-a-stable-perl.html with non-tracing poisoning
308     - perl: "schmorp_stableperl_thr_mb"
309       sudo: false
310       dist: precise
311       env:
312         - CLEANTEST=true
313         - POISON_ENV=true
314         - BREWVER=schmorp_stableperl
315         - BREWOPTS="-Duseithreads -Dusemorebits"
316
317   # which ones of the above can fail
318   allow_failures:
319
320     # these run with various dev snapshots - allowed to fail
321     - perl: devcpan_5.8.1_thr_mb
322     - perl: devcpan_5.8.1
323     - perl: devcpan_5.8.3_mb
324     - perl: devcpan_5.8.7_thr
325     - perl: devcpan_5.8.8_thr_mb
326     - perl: devcpan_5.10.0_thr_mb
327     - perl: devcpan_5.12.1_thr
328     - perl: bleadperl
329     - perl: devcpan_bleadperl_thr_mb
330     - perl: schmorp_stableperl_thr_mb
331
332
333 ###
334 ### For the following two phases -e is *set*
335 ###
336
337 before_install:
338   # common functions for all run phases below
339   #
340   # this is an exporter - sourcing it is crucial
341   # among other things it also sets -e
342   #
343   - source maint/travis-ci_scripts/common.bash
344
345   # Sets global envvars, downloads/configures debs based on CLEANTEST
346   # Sets extra DBICTEST_* envvars
347   #
348   # this is an exporter - sourcing it is crucial
349   #
350   - source maint/travis-ci_scripts/10_before_install.bash
351
352 install:
353   # Build and switch to a custom perl if requested
354   # Configure the perl env, preinstall some generic toolchain parts
355   # Possibly poison the environment
356   #
357   # this is an exporter - sourcing it is crucial
358   #
359   - source maint/travis-ci_scripts/20_install.bash
360
361 ###
362 ### From this point on -e is *unset*, rely on travis' error handling
363 ###
364   - set +e
365
366 before_script:
367   # Preinstall/install deps based on envvars/CLEANTEST
368   #
369   # need to invoke the after_failure script manually
370   # because 'after_failure' runs only after 'script' fails
371   #
372   - maint/getstatus maint/travis-ci_scripts/30_before_script.bash
373
374 script:
375   # Run actual tests
376   #
377   - maint/getstatus maint/travis-ci_scripts/40_script.bash
378
379 ###
380 ### Set -e back, work around https://github.com/travis-ci/travis-ci/issues/3533
381 ###
382   - set -e
383
384 after_success:
385   # Check if we can assemble a dist properly if not in CLEANTEST
386   #
387   - maint/getstatus maint/travis-ci_scripts/50_after_success.bash
388
389 after_failure:
390   # Final sysinfo printout on fail
391   #
392   - maint/getstatus maint/travis-ci_scripts/50_after_failure.bash
393
394 after_script:
395   # No tasks yet
396   #
397   #- maint/getstatus maint/travis-ci_scripts/60_after_script.bash