Commit | Line | Data |
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 | # |
38 | branches: |
39 | except: |
40 | - /^wip\// |
41 | - /^blocked/ |
42 | |
43 | x_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 | |
68 | language: perl |
69 | |
70 | perl: |
71 | - "5.18" |
72 | |
73 | env: |
74 | - CLEANTEST=false |
94e24115 |
75 | - CLEANTEST=false DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
76 | - CLEANTEST=true |
77 | |
4ef0f7f7 |
78 | matrix: |
b7254ae2 |
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 |
4ef0f7f7 |
116 | - DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
117 | |
118 | # Full Test of minimum supported without threads |
119 | - perl: 5.8.3_nt |
120 | env: |
121 | - CLEANTEST=false |
122 | - BREWOPTS="" |
123 | - BREWVER=5.8.3 |
124 | - DBIC_TRACE_PROFILE=console_monochrome |
4ef0f7f7 |
125 | - DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
126 | |
127 | ### |
128 | # some permutations of tracing and envvar poisoning |
129 | |
130 | - perl: 5.16.2_thr_mb |
131 | env: |
132 | - CLEANTEST=false |
133 | - POISON_ENV=true |
134 | - DBIC_TRACE=1 |
135 | - DBIC_MULTICREATE_DEBUG=0 |
4ef0f7f7 |
136 | - DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
137 | - BREWOPTS="-Duseithreads -Dusemorebits" |
138 | - BREWVER=5.16.2 |
139 | |
140 | - perl: 5.18 |
141 | env: |
142 | - CLEANTEST=false |
143 | - POISON_ENV=true |
144 | - DBIC_TRACE_PROFILE=console |
145 | |
146 | - perl: 5.8 |
147 | env: |
148 | - CLEANTEST=true |
149 | - POISON_ENV=true |
150 | - DBIC_TRACE=1 |
151 | - DBIC_TRACE_PROFILE=console |
4ef0f7f7 |
152 | - DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
153 | |
154 | - perl: 5.18 |
155 | env: |
156 | - CLEANTEST=false |
157 | - POISON_ENV=true |
158 | - DBIC_TRACE=1 |
159 | - DBIC_TRACE_PROFILE=console_monochrome |
160 | - DBIC_MULTICREATE_DEBUG=0 |
4ef0f7f7 |
161 | - DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
162 | |
163 | ### |
164 | # Start of the allow_failures block |
165 | |
166 | # old threaded with blead CPAN |
167 | - perl: devcpan_5.8.7_thr |
168 | env: |
169 | - CLEANTEST=true |
170 | - BREWOPTS="-Duseithreads" |
171 | - BREWVER=5.8.7 |
172 | - DEVREL_DEPS=true |
173 | |
174 | # 5.10.0 threaded with blead CPAN |
175 | - perl: devcpan_5.10.0_thr_mb |
176 | env: |
177 | - CLEANTEST=true |
178 | - BREWOPTS="-Duseithreads -Dusemorebits" |
179 | - BREWVER=5.10.0 |
180 | - DEVREL_DEPS=true |
181 | |
182 | # 5.12.2 with blead CPAN |
183 | - perl: devcpan_5.12.2_thr |
184 | env: |
185 | - CLEANTEST=true |
186 | - BREWOPTS="-Duseithreads" |
187 | - BREWVER=5.12.2 |
188 | - DEVREL_DEPS=true |
189 | |
190 | # recentish threaded stable with blead CPAN |
191 | - perl: devcpan_5.18.2_thr_mb |
192 | env: |
193 | - CLEANTEST=false |
194 | - BREWOPTS="-Duseithreads -Dusemorebits" |
195 | - BREWVER=5.18.2 |
196 | - DEVREL_DEPS=true |
4ef0f7f7 |
197 | - DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
198 | |
199 | # bleadperl with stock CPAN, full depchain test |
200 | - perl: bleadperl |
201 | env: |
202 | - CLEANTEST=true |
203 | - BREWVER=blead |
204 | |
205 | # bleadperl with blead CPAN |
206 | - perl: devcpan_bleadperl_thr_mb |
207 | env: |
208 | - CLEANTEST=false |
209 | - BREWOPTS="-Duseithreads -Dusemorebits" |
210 | - BREWVER=blead |
211 | - DEVREL_DEPS=true |
4ef0f7f7 |
212 | - DBICTEST_MYSQL_INNODB=1 |
b7254ae2 |
213 | |
214 | |
215 | # which ones of the above can fail |
216 | allow_failures: |
217 | |
218 | # these run with various dev snapshots - allowed to fail |
219 | - perl: devcpan_5.8.7_thr |
220 | - perl: devcpan_5.10.0_thr_mb |
221 | - perl: devcpan_5.12.2_thr |
222 | - perl: devcpan_5.18.2_thr_mb |
223 | - perl: bleadperl |
224 | - perl: devcpan_bleadperl_thr_mb |
225 | |
ddc4c0e6 |
226 | # Several upstream deps are flaky on 5.8.3 |
227 | - perl: 5.8.3_nt |
228 | - perl: 5.8.3_nt_mb |
229 | |
b7254ae2 |
230 | |
231 | # sourcing the files is *EXTREMELY* important - otherwise |
232 | # no envvars will survive |
233 | |
234 | # the entire run times out after 50 minutes, or after 5 minutes without |
235 | # console output |
236 | |
237 | before_install: |
238 | # Sets global envvars, downloads/configures debs based on CLEANTEST |
239 | # Sets extra DBICTEST_* envvars |
240 | # |
241 | - source maint/travis-ci_scripts/10_before_install.bash |
242 | |
243 | install: |
244 | # Build and switch to a custom perl if requested |
245 | # Configure the perl env, preinstall some generic toolchain parts |
246 | # |
247 | - source maint/travis-ci_scripts/20_install.bash |
248 | |
249 | before_script: |
250 | # Preinstall/install deps based on envvars/CLEANTEST |
251 | # |
252 | - source maint/travis-ci_scripts/30_before_script.bash |
253 | |
254 | script: |
255 | # Run actual tests |
256 | # |
257 | - source maint/travis-ci_scripts/40_script.bash |
258 | |
259 | after_success: |
260 | # Check if we can assemble a dist properly if not in CLEANTEST |
261 | # skipped for now |
262 | # - source maint/travis-ci_scripts/50_after_success.bash |
263 | |
264 | after_failure: |
265 | # No tasks yet |
266 | # |
267 | #- source maint/travis-ci_scripts/50_after_failure.bash |
268 | |
269 | after_script: |
270 | # No tasks yet |
271 | # |
272 | #- source maint/travis-ci_scripts/60_after_script.bash |
273 | |
274 | # if we do not unset this before we terminate the travis teardown will |
275 | # mark the entire job as failed |
276 | - set +e |