Test MySQL with InnoDB (i.e. relationships) as well
[dbsrgits/DBIx-Class-Schema-Loader.git] / .travis.yml
CommitLineData
b7254ae2 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 ribasushi. *DO NOT* disable 5.8 testing - it is here for a
10# reason
11#
12# * The matrix is built from two main modes - CLEANTEST = [true|false].
13# - In the first case we test with minimal deps available, and skip everything
14# listed in DBIC::OptDesps. The modules are installed with classic CPAN
15# invocations and are *fully tested*. In other words we simulate what would
16# happen if a user tried to install on a just-compiled virgin perl
17# - Without CLEANTEST we bring the armada of RDBMS and install the maximum
18# possible set of deps *without testing them*. This ensures we stay within
19# a reasonable build-time and still run as many of our tests as possible
20#
21# * The perl builds and the DBIC tests run under NUMTHREADS number of threads.
22# The testing of dependencies under CLEANTEST runs single-threaded, at least
23# until we fix our entire dep-chain to safely pass under -j
24#
25# * The way .travis.yml is fed to the command controller is idiotic - it
26# makes using multiline `bash -c` statements impossible. Therefore to
27# aid readability (our travis logic is rather complex), the bulk of
28# functionality is moved to scripts. More about the problem (and the
29# WONTFIX "explanation") here: https://github.com/travis-ci/travis-ci/issues/497
30#
31
32#
33# Smoke all branches except for blocked* and wip/*
34#
35# Additionally master does not smoke with bleadperl
36# ( implemented in maint/travis-ci_scripts/10_before_install.bash )
37#
38branches:
39 except:
40 - /^wip\//
41 - /^blocked/
42
43x_disabled_notifications:
44 irc:
45 channels:
46 - "irc.perl.org#dbic-smoke"
47 template:
48 - "%{branch}#%{build_number} by %{author}: %{message} (%{build_url})"
49 on_success: change
50 on_failure: always
51 use_notice: true
52
53 email:
54 recipients:
55 - ilmari@ilmari.org
56 # Temporary - if it proves to be too noisy, we'll shut it off
57 #- dbix-class-devel@lists.scsys.co.uk
58 on_success: change
59 on_failure: always
60
61# FIXME - This stuff is not yet available for free OSS accounts, sadpanda
62# First paragrah on http://about.travis-ci.org/docs/user/caching/
63#cache:
64# apt: true
65# directories:
66# - /var/cache/apt/archives
67
68language: perl
69
70perl:
71 - "5.18"
72
73env:
74 - CLEANTEST=false
94e24115 75 - CLEANTEST=false DBICTEST_MYSQL_INNODB=1
b7254ae2 76 - CLEANTEST=true
77
78x_disabled_matrix:
79 fast_finish: true
80 include:
81 # this particular perl is quite widespread
82 - perl: 5.8.8_thr_mb
83 env:
84 - CLEANTEST=true
85 - BREWOPTS="-Duseithreads -Dusemorebits"
86 - BREWVER=5.8.8
87
88 # so is this one (test a sane CPAN.pm)
89 - perl: 5.12.4_thr_mb
90 env:
91 - CLEANTEST=true
92 - BREWOPTS="-Duseithreads -Dusemorebits"
93 - BREWVER=5.12.4
94
95 # this is the perl suse ships
96 - perl: 5.10.0_thr_dbg
97 env:
98 - CLEANTEST=true
99 - BREWOPTS="-DDEBUGGING -Duseithreads"
100 - BREWVER=5.10.0
101
102 # CLEANTEST of minimum supported
103 - perl: 5.8.3_nt_mb
104 env:
105 - CLEANTEST=true
106 - BREWOPTS="-Dusemorebits"
107 - BREWVER=5.8.3
108
109 # Full Test of minimum supported with threads
110 - perl: 5.8.5_thr
111 env:
112 - CLEANTEST=false
113 - BREWOPTS="-Duseithreads"
114 - BREWVER=5.8.5
115 - DBIC_TRACE_PROFILE=console
116
117 # Full Test of minimum supported without threads
118 - perl: 5.8.3_nt
119 env:
120 - CLEANTEST=false
121 - BREWOPTS=""
122 - BREWVER=5.8.3
123 - DBIC_TRACE_PROFILE=console_monochrome
124
125 ###
126 # some permutations of tracing and envvar poisoning
127
128 - perl: 5.16.2_thr_mb
129 env:
130 - CLEANTEST=false
131 - POISON_ENV=true
132 - DBIC_TRACE=1
133 - DBIC_MULTICREATE_DEBUG=0
134 - BREWOPTS="-Duseithreads -Dusemorebits"
135 - BREWVER=5.16.2
136
137 - perl: 5.18
138 env:
139 - CLEANTEST=false
140 - POISON_ENV=true
141 - DBIC_TRACE_PROFILE=console
142
143 - perl: 5.8
144 env:
145 - CLEANTEST=true
146 - POISON_ENV=true
147 - DBIC_TRACE=1
148 - DBIC_TRACE_PROFILE=console
149
150 - perl: 5.18
151 env:
152 - CLEANTEST=false
153 - POISON_ENV=true
154 - DBIC_TRACE=1
155 - DBIC_TRACE_PROFILE=console_monochrome
156 - DBIC_MULTICREATE_DEBUG=0
157
158 ###
159 # Start of the allow_failures block
160
161 # old threaded with blead CPAN
162 - perl: devcpan_5.8.7_thr
163 env:
164 - CLEANTEST=true
165 - BREWOPTS="-Duseithreads"
166 - BREWVER=5.8.7
167 - DEVREL_DEPS=true
168
169 # 5.10.0 threaded with blead CPAN
170 - perl: devcpan_5.10.0_thr_mb
171 env:
172 - CLEANTEST=true
173 - BREWOPTS="-Duseithreads -Dusemorebits"
174 - BREWVER=5.10.0
175 - DEVREL_DEPS=true
176
177 # 5.12.2 with blead CPAN
178 - perl: devcpan_5.12.2_thr
179 env:
180 - CLEANTEST=true
181 - BREWOPTS="-Duseithreads"
182 - BREWVER=5.12.2
183 - DEVREL_DEPS=true
184
185 # recentish threaded stable with blead CPAN
186 - perl: devcpan_5.18.2_thr_mb
187 env:
188 - CLEANTEST=false
189 - BREWOPTS="-Duseithreads -Dusemorebits"
190 - BREWVER=5.18.2
191 - DEVREL_DEPS=true
192
193 # bleadperl with stock CPAN, full depchain test
194 - perl: bleadperl
195 env:
196 - CLEANTEST=true
197 - BREWVER=blead
198
199 # bleadperl with blead CPAN
200 - perl: devcpan_bleadperl_thr_mb
201 env:
202 - CLEANTEST=false
203 - BREWOPTS="-Duseithreads -Dusemorebits"
204 - BREWVER=blead
205 - DEVREL_DEPS=true
206
207
208 # which ones of the above can fail
209 allow_failures:
210
211 # these run with various dev snapshots - allowed to fail
212 - perl: devcpan_5.8.7_thr
213 - perl: devcpan_5.10.0_thr_mb
214 - perl: devcpan_5.12.2_thr
215 - perl: devcpan_5.18.2_thr_mb
216 - perl: bleadperl
217 - perl: devcpan_bleadperl_thr_mb
218
219
220# sourcing the files is *EXTREMELY* important - otherwise
221# no envvars will survive
222
223# the entire run times out after 50 minutes, or after 5 minutes without
224# console output
225
226before_install:
227 # Sets global envvars, downloads/configures debs based on CLEANTEST
228 # Sets extra DBICTEST_* envvars
229 #
230 - source maint/travis-ci_scripts/10_before_install.bash
231
232install:
233 # Build and switch to a custom perl if requested
234 # Configure the perl env, preinstall some generic toolchain parts
235 #
236 - source maint/travis-ci_scripts/20_install.bash
237
238before_script:
239 # Preinstall/install deps based on envvars/CLEANTEST
240 #
241 - source maint/travis-ci_scripts/30_before_script.bash
242
243script:
244 # Run actual tests
245 #
246 - source maint/travis-ci_scripts/40_script.bash
247
248after_success:
249 # Check if we can assemble a dist properly if not in CLEANTEST
250 # skipped for now
251 # - source maint/travis-ci_scripts/50_after_success.bash
252
253after_failure:
254 # No tasks yet
255 #
256 #- source maint/travis-ci_scripts/50_after_failure.bash
257
258after_script:
259 # No tasks yet
260 #
261 #- source maint/travis-ci_scripts/60_after_script.bash
262
263 # if we do not unset this before we terminate the travis teardown will
264 # mark the entire job as failed
265 - set +e