1
1
language : d
2
2
3
- # See: https://docs.travis-ci.com/user/trusty-ci-environment/#Routing-to-Trusty
4
- sudo : required
5
- dist : trusty
6
- group : edge
7
-
8
3
# start most recent dmd and ldc first, then older versions. (don't bother with pre-release')
9
4
# For available compilers see: https://semitwist.com/travis-d-compilers
10
5
d :
11
6
- ldc
12
7
- dmd
13
- - dmd-2.079.0
14
- - dmd-2.078.3
15
- - dmd-2.077.1
16
- - dmd-2.076.1
17
- - dmd-2.075.1
18
- - ldc-1.8.0 # eq to dmd v2.078.3
19
- - ldc-1.7.0 # eq to dmd v2.077.1
20
- - ldc-1.6.0 # eq to dmd v2.076.1
21
- - ldc-1.5.0 # eq to dmd v2.075.1
22
- - gdc
23
-
24
- # make sure our Mac build uses latest OS X. See: https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
25
- osx_image : xcode9
26
-
27
- before_install :
28
- - " if [ ${TRAVIS_OS_NAME} = 'osx' ]; then brew update && brew install libevent sqlite && brew link --force sqlite; fi"
29
-
30
- os :
31
- - linux
32
- - osx
8
+ - dmd-2.087.0
9
+ - dmd-2.086.1
10
+ - dmd-2.085.1
11
+ - dmd-2.084.1
12
+ - dmd-2.083.1
13
+ - dmd-2.082.1
14
+ - ldc-1.17.0 # eq to dmd v2.087
15
+ - ldc-1.16.0 # eq to dmd v2.086.1
16
+ - ldc-1.15.0 # eq to dmd v2.085.1
17
+ - ldc-1.14.0 # eq to dmd v2.084.1
18
+ - ldc-1.13.0 # eq to dmd v2.083.1
19
+ - ldc-1.12.0 # eq to dmd v2.082.1
33
20
34
21
script :
35
22
- dub build --config=full --compiler=${DC}
@@ -38,12 +25,15 @@ script:
38
25
39
26
addons :
40
27
apt :
28
+ update : true
41
29
sources :
42
30
- ubuntu-toolchain-r-test
43
31
packages :
44
32
- libevent-dev
45
33
- libsqlite3-dev
46
34
- gcc-6
35
+ homebrew :
36
+ brewfile : true
47
37
48
38
# GDC versions need to be setup with correct version of gcc
49
39
# The integration tests can only run in Linux container
@@ -52,27 +42,37 @@ matrix:
52
42
- env : NAME="MySQL Integration Test with DUB upgrade"
53
43
d : dmd
54
44
os : linux
55
- service : mysql
56
- before_script : mysql -e 'CREATE DATABASE ddbctest;'
45
+ services :
46
+ - mysql
47
+ before_script : mysql --user=travis -e 'CREATE DATABASE ddbctest;'
57
48
script :
58
49
- dub upgrade
59
50
- dub build --config=full
60
- - cd example && dub build && ./ddbctest --connection=mysql:127.0.0.1 --database=ddbctest --user=root
51
+ - cd example && dub build && ./ddbctest --connection=mysql:127.0.0.1 --database=ddbctest --user=travis
61
52
- env : NAME="MySQL Integration Test"
62
53
d : dmd
63
54
os : linux
64
- service : mysql
65
- before_script : mysql -e 'CREATE DATABASE ddbctest;'
55
+ services :
56
+ - mysql
57
+ before_script : mysql --user=travis -e 'CREATE DATABASE ddbctest;'
66
58
script :
67
59
- dub build --config=full
68
- - cd example && dub build && ./ddbctest --connection=mysql:127.0.0.1 --database=ddbctest --user=root
60
+ - cd example && dub build && ./ddbctest --connection=mysql:127.0.0.1 --database=ddbctest --user=travis
69
61
- env : NAME="PostgreSQL Integration Test"
70
62
d : dmd
71
63
os : linux
72
- service : postgresql
64
+ services :
65
+ - postgresql
73
66
before_script : psql -c 'create database ddbctest;' -U postgres
74
67
script :
75
68
- dub build --config=full
76
69
- cd example && dub build && ./ddbctest --connection=pgsql:127.0.0.1 --database=ddbctest --user=postgres
70
+ - d : dmd
71
+ os : osx
72
+ - d : ldc
73
+ os : osx
74
+ - d : dmd-beta
75
+ - d : gdc
77
76
allow_failures :
77
+ - d : dmd-beta
78
78
- d : gdc
0 commit comments