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