Skip to content

Commit 66ffa6a

Browse files
Add multiple Travis scripts to run with and without dub upgrade
Since `dub.selections.json` is fixed in the repo, CI will fail to pick up on bugs associated with changes in more recent dependency versions, such as the current known issue with `taggedalgebraic` >= 0.11.0 and DMD >= 2.086.0: #44 (comment) This patch adds custom `script` settings, with two entries: * a script which runs the default `dub test` call, which will use the dependencies specified in `dub.selections.json` * a script which calls `dub upgrade` before the `dub test` call, ensuring that the latest dependency versions are used This should ensure that CI validates that `stdx.data.json` is compatible with both its lowest and highest stated dependency versions. Note that no new build matrix entries are added: both scripts are run in the course of a single build. This is expected to cause a failure for the `dmd-beta` build, since any DMD >= 2.086.0 triggers the aforementioned `taggedalgebraic` issue, but since these are `allowed_failures` in Travis config CI as a whole should still pass (these failures are effectively treated as warnings of future breaking changes rather than as errors).
1 parent 3de7bd3 commit 66ffa6a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ d:
2121
- ldc-1.9.0
2222
- dmd-beta
2323

24+
script:
25+
- dub test --compiler=${DC}
26+
- dub upgrade && dub test --compiler=${DC}
27+
2428
matrix:
2529
allow_failures:
2630
- d: dmd-beta

0 commit comments

Comments
 (0)