Commit | Line | Data |
d70070c9 |
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 | # |
6d2b5c14 |
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 |
d70070c9 |
20 | # |
6d2b5c14 |
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 |
d70070c9 |
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 |
b58ecb01 |
28 | # functionality is moved to scripts. More about the problem (and the |
d70070c9 |
29 | # WONTFIX "explanation") here: https://github.com/travis-ci/travis-ci/issues/497 |
30 | # |
afeb40d2 |
31 | # the entire run times out after 50 minutes, or after 5 minutes without |
32 | # console output |
d70070c9 |
33 | |
d0b79c51 |
34 | # |
a0acdea0 |
35 | # Smoke all branches except for blocked* and wip/* |
d0b79c51 |
36 | # |
a0acdea0 |
37 | # Additionally master does not smoke with bleadperl |
38 | # ( implemented in maint/travis-ci_scripts/10_before_install.bash ) |
d0b79c51 |
39 | # |
d70070c9 |
40 | branches: |
a0acdea0 |
41 | except: |
42 | - /^wip\// |
43 | - /^blocked/ |
d70070c9 |
44 | |
45 | notifications: |
46 | irc: |
47 | channels: |
48 | - "irc.perl.org#dbic-smoke" |
49 | template: |
50 | - "%{branch}#%{build_number} by %{author}: %{message} (%{build_url})" |
51 | on_success: change |
52 | on_failure: always |
53 | use_notice: true |
54 | |
55 | email: |
2af1c37d |
56 | recipients: |
57 | - ribasushi@cpan.org |
58 | # Temporary - if it proves to be too noisy, we'll shut it off |
ee896495 |
59 | #- dbix-class-devel@lists.scsys.co.uk |
2af1c37d |
60 | on_success: change |
4ac234b5 |
61 | on_failure: always |
d70070c9 |
62 | |
003e97c5 |
63 | # FIXME - This stuff is not yet available for free OSS accounts, sadpanda |
64 | # First paragrah on http://about.travis-ci.org/docs/user/caching/ |
65 | #cache: |
66 | # apt: true |
67 | # directories: |
68 | # - /var/cache/apt/archives |
69 | |
915876d7 |
70 | language: perl |
d70070c9 |
71 | |
915876d7 |
72 | perl: |
4ae45d69 |
73 | - "5.20-extras" |
915876d7 |
74 | |
d70070c9 |
75 | env: |
76 | - CLEANTEST=false |
77 | - CLEANTEST=true |
dea888a6 |
78 | |
d70070c9 |
79 | matrix: |
070b8a0c |
80 | fast_finish: true |
d70070c9 |
81 | include: |
ced296a8 |
82 | # this particular perl is quite widespread |
83 | - perl: 5.8.8_thr_mb |
d70070c9 |
84 | env: |
ced296a8 |
85 | - CLEANTEST=true |
86 | - BREWOPTS="-Duseithreads -Dusemorebits" |
87 | - BREWVER=5.8.8 |
915876d7 |
88 | |
ced296a8 |
89 | # so is this one (test a sane CPAN.pm) |
90 | - perl: 5.12.4_thr_mb |
6d2b5c14 |
91 | env: |
92 | - CLEANTEST=true |
ced296a8 |
93 | - BREWOPTS="-Duseithreads -Dusemorebits" |
94 | - BREWVER=5.12.4 |
6d2b5c14 |
95 | |
d70070c9 |
96 | # this is the perl suse ships |
97 | - perl: 5.10.0_thr_dbg |
98 | env: |
99 | - CLEANTEST=true |
100 | - BREWOPTS="-DDEBUGGING -Duseithreads" |
101 | - BREWVER=5.10.0 |
102 | |
ced296a8 |
103 | # CLEANTEST of minimum supported |
104 | - perl: 5.8.3_nt_mb |
d70070c9 |
105 | env: |
106 | - CLEANTEST=true |
ced296a8 |
107 | - BREWOPTS="-Dusemorebits" |
108 | - BREWVER=5.8.3 |
d70070c9 |
109 | |
ced296a8 |
110 | # Full Test of minimum supported with threads |
111 | - perl: 5.8.5_thr |
112 | env: |
113 | - CLEANTEST=false |
114 | - BREWOPTS="-Duseithreads" |
115 | - BREWVER=5.8.5 |
116 | - DBIC_TRACE_PROFILE=console |
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 |
125 | |
126 | ### |
eed5492f |
127 | # some permutations of tracing and envvar poisoning |
ced296a8 |
128 | |
4ae45d69 |
129 | - perl: 5.16.3_thr_mb |
7c1a09fc |
130 | env: |
131 | - CLEANTEST=false |
132 | - POISON_ENV=true |
133 | - DBIC_TRACE=1 |
134 | - DBIC_MULTICREATE_DEBUG=0 |
135 | - BREWOPTS="-Duseithreads -Dusemorebits" |
4ae45d69 |
136 | - BREWVER=5.16.3 |
7c1a09fc |
137 | |
4ae45d69 |
138 | - perl: 5.20-extras |
eba59b7e |
139 | env: |
140 | - CLEANTEST=false |
eed5492f |
141 | - POISON_ENV=true |
7c1a09fc |
142 | - DBIC_TRACE_PROFILE=console |
eba59b7e |
143 | |
f2f65c95 |
144 | - perl: 5.8 |
eba59b7e |
145 | env: |
146 | - CLEANTEST=true |
eed5492f |
147 | - POISON_ENV=true |
eba59b7e |
148 | - DBIC_TRACE=1 |
149 | - DBIC_TRACE_PROFILE=console |
150 | |
4ae45d69 |
151 | - perl: 5.18-extras |
eba59b7e |
152 | env: |
153 | - CLEANTEST=false |
eed5492f |
154 | - POISON_ENV=true |
eba59b7e |
155 | - DBIC_TRACE=1 |
156 | - DBIC_TRACE_PROFILE=console_monochrome |
8bc629c4 |
157 | - DBIC_MULTICREATE_DEBUG=0 |
eba59b7e |
158 | |
261141ce |
159 | ### |
160 | # Start of the allow_failures block |
161 | |
21302b46 |
162 | # old threaded with blead CPAN |
163 | - perl: devcpan_5.8.7_thr |
dd5de10a |
164 | env: |
165 | - CLEANTEST=true |
166 | - BREWOPTS="-Duseithreads" |
21302b46 |
167 | - BREWVER=5.8.7 |
dd5de10a |
168 | - DEVREL_DEPS=true |
169 | |
e6b373aa |
170 | # 5.10.0 threaded with blead CPAN |
171 | - perl: devcpan_5.10.0_thr_mb |
172 | env: |
173 | - CLEANTEST=true |
174 | - BREWOPTS="-Duseithreads -Dusemorebits" |
175 | - BREWVER=5.10.0 |
176 | - DEVREL_DEPS=true |
177 | |
dd5de10a |
178 | # 5.12.2 with blead CPAN |
179 | - perl: devcpan_5.12.2_thr |
e6b373aa |
180 | env: |
181 | - CLEANTEST=true |
182 | - BREWOPTS="-Duseithreads" |
dd5de10a |
183 | - BREWVER=5.12.2 |
e6b373aa |
184 | - DEVREL_DEPS=true |
185 | |
dd5de10a |
186 | # recentish threaded stable with blead CPAN |
bb16343b |
187 | - perl: devcpan_5.18.2_thr_mb |
2f51deb1 |
188 | env: |
189 | - CLEANTEST=false |
190 | - BREWOPTS="-Duseithreads -Dusemorebits" |
bb16343b |
191 | - BREWVER=5.18.2 |
2f51deb1 |
192 | - DEVREL_DEPS=true |
193 | |
c47de5de |
194 | # bleadperl with stock CPAN, full depchain test |
195 | - perl: bleadperl |
261141ce |
196 | env: |
c47de5de |
197 | - CLEANTEST=true |
261141ce |
198 | - BREWVER=blead |
199 | |
2f51deb1 |
200 | # bleadperl with blead CPAN |
201 | - perl: devcpan_bleadperl_thr_mb |
202 | env: |
203 | - CLEANTEST=false |
204 | - BREWOPTS="-Duseithreads -Dusemorebits" |
205 | - BREWVER=blead |
206 | - DEVREL_DEPS=true |
207 | |
261141ce |
208 | |
209 | # which ones of the above can fail |
210 | allow_failures: |
f2f65c95 |
211 | |
f207111d |
212 | # these run with various dev snapshots - allowed to fail |
21302b46 |
213 | - perl: devcpan_5.8.7_thr |
dd5de10a |
214 | - perl: devcpan_5.10.0_thr_mb |
215 | - perl: devcpan_5.12.2_thr |
bb16343b |
216 | - perl: devcpan_5.18.2_thr_mb |
c47de5de |
217 | - perl: bleadperl |
2f51deb1 |
218 | - perl: devcpan_bleadperl_thr_mb |
261141ce |
219 | |
220 | |
afeb40d2 |
221 | ### |
222 | ### For the following two phases -e is *set* |
223 | ### |
b58ecb01 |
224 | |
d70070c9 |
225 | before_install: |
2b32a020 |
226 | # common functions for all run phases below |
afeb40d2 |
227 | # |
228 | # this is an exporter - sourcing it is crucial |
229 | # among other things it also sets -e |
230 | # |
2b32a020 |
231 | - source maint/travis-ci_scripts/common.bash |
232 | |
b58ecb01 |
233 | # Sets global envvars, downloads/configures debs based on CLEANTEST |
234 | # Sets extra DBICTEST_* envvars |
235 | # |
afeb40d2 |
236 | # this is an exporter - sourcing it is crucial |
237 | # |
b58ecb01 |
238 | - source maint/travis-ci_scripts/10_before_install.bash |
d70070c9 |
239 | |
240 | install: |
241 | # Build and switch to a custom perl if requested |
b58ecb01 |
242 | # Configure the perl env, preinstall some generic toolchain parts |
afeb40d2 |
243 | # Possibly poison the environment |
244 | # |
245 | # this is an exporter - sourcing it is crucial |
b58ecb01 |
246 | # |
b58ecb01 |
247 | - source maint/travis-ci_scripts/20_install.bash |
d70070c9 |
248 | |
afeb40d2 |
249 | ### |
250 | ### From this point on -e is *unset*, rely on travis' error handling |
251 | ### |
252 | - set +e |
253 | |
b58ecb01 |
254 | before_script: |
255 | # Preinstall/install deps based on envvars/CLEANTEST |
256 | # |
ac4e80df |
257 | # need to invoke the after_failure script manually |
258 | # because 'after_failure' runs only after 'script' fails |
259 | # |
260 | - maint/getstatus maint/travis-ci_scripts/30_before_script.bash || ( maint/travis-ci_scripts/50_after_failure.bash && /bin/false ) |
c299fd65 |
261 | |
b58ecb01 |
262 | script: |
263 | # Run actual tests |
264 | # |
ac4e80df |
265 | - maint/getstatus maint/travis-ci_scripts/40_script.bash |
c87d30a7 |
266 | |
267 | after_success: |
b58ecb01 |
268 | # Check if we can assemble a dist properly if not in CLEANTEST |
269 | # |
ac4e80df |
270 | - maint/getstatus maint/travis-ci_scripts/50_after_success.bash |
b58ecb01 |
271 | |
272 | after_failure: |
ac4e80df |
273 | # Final sysinfo printout on fail |
b58ecb01 |
274 | # |
ac4e80df |
275 | - maint/getstatus maint/travis-ci_scripts/50_after_failure.bash |
b58ecb01 |
276 | |
277 | after_script: |
278 | # No tasks yet |
279 | # |
ac4e80df |
280 | #- maint/getstatus maint/travis-ci_scripts/60_after_script.bash |