forked from vibe-d/vibe.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
181 lines (175 loc) · 5.52 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
platform: x64
environment:
matrix:
- DC: dmd
DVersion: 2.079.0
arch: x64
config: vibe-core
- DC: dmd
DVersion: 2.079.0
arch: x86_mscoff
config: vibe-core
- DC: dmd
DVersion: 2.079.0
arch: x86
config: win32
- DC: dmd
DVersion: 2.078.3
arch: x86
config: win32
- DC: dmd
DVersion: 2.077.1
arch: x86_mscoff
config: win32
- DC: dmd
DVersion: 2.076.1
arch: x86_mscoff
config: win32
- DC: dmd
DVersion: 2.075.1
arch: x86_mscoff
config: win32
- DC: dmd
DVersion: 2.074.1
arch: x86_mscoff
config: win32
- DC: dmd
DVersion: 2.073.2
arch: x86_mscoff
config: win32
- DC: dmd
DVersion: 2.073.2
arch: x86
config: vibe-core
- DC: dmd
DVersion: 2.073.2
arch: x86_mscoff
config: vibe-core
- DC: ldc
DVersion: 1.8.0
arch: x64
config: vibe-core
- DC: ldc
DVersion: 1.7.0
arch: x64
config: vibe-core
- DC: ldc
DVersion: 1.6.0
arch: x64
config: vibe-core
- DC: ldc
DVersion: 1.5.0
arch: x86
config: vibe-core
- DC: ldc
DVersion: 1.4.0
arch: x64
config: vibe-core
- DC: ldc
DVersion: 1.3.0
arch: x64
config: vibe-core
branches:
only:
- master
- 0.7.x
skip_tags: true
services:
- mongodb
install:
- ps: function SetUpDCompiler
{
if($env:DC -eq "dmd"){
if($env:arch -eq "x86"){
$env:DConf = "m32";
}
elseif($env:arch -eq "x64"){
$env:DConf = "m64";
}
echo "downloading ...";
$env:toolchain = "msvc";
$version = $env:DVersion;
Invoke-WebRequest "http://downloads.dlang.org/releases/2.x/$($version)/dmd.$($version).windows.7z" -OutFile "c:\dmd.7z";
echo "finished.";
pushd c:\\;
7z x dmd.7z > $null;
popd;
}
elseif($env:DC -eq "ldc"){
echo "downloading ...";
if($env:arch -eq "x86"){
$env:DConf = "m32";
}
elseif($env:arch -eq "x64"){
$env:DConf = "m64";
}
$env:toolchain = "msvc";
$version = $env:DVersion;
if($version -eq "1.3.0" -Or $version -eq "1.4.0" -Or $version -eq "1.5.0" -Or $version -eq "1.6.0") {
Invoke-WebRequest "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-win64-msvc.zip" -OutFile "c:\ldc.zip";
echo "finished.";
pushd c:\\;
7z x ldc.zip > $null;
popd;
} else {
Invoke-WebRequest "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-windows-$($env:arch).7z" -OutFile "c:\ldc.7z";
pushd c:\\;
7z x ldc.7z > $null;
popd;
}
}
}
- ps: SetUpDCompiler
- powershell -Command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest "https://github.com/dlang/dub/releases/download/v1.7.2/dub-1.7.2-windows-x86.zip" -OutFile dub.zip
- 7z x dub.zip -odub > nul
- set PATH=%CD%\%binpath%;%CD%\dub;%PATH%
- dub --version
before_build:
- ps: if($env:arch -eq "x86"){
$env:compilersetupargs = "x86";
$env:Darch = "x86";
}
elseif($env:arch -eq "x86_mscoff"){
$env:compilersetupargs = "x86";
$env:Darch = "x86_mscoff";
}
elseif($env:arch -eq "x64"){
$env:compilersetupargs = "amd64";
$env:Darch = "x86_64";
}
- ps : if($env:DC -eq "dmd"){
$env:PATH += ";C:\dmd2\windows\bin;";
}
elseif($env:DC -eq "ldc"){
$version = $env:DVersion;
if($version -eq "1.3.0" -Or $version -eq "1.4.0" -Or $version -eq "1.5.0" -Or $version -eq "1.6.0") {
$env:PATH += ";C:\ldc2-$($version)-win64-msvc\bin";
} else {
$env:PATH += ";C:\ldc2-$($version)-windows-$($env:arch)\bin";
}
$env:DC = "ldc2";
}
- ps: $env:compilersetup = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall";
- '"%compilersetup%" %compilersetupargs%'
build_script:
- echo dummy build script - don't remove me
test_script:
- echo %PLATFORM%
- echo %Darch%
- echo %DC%
- echo %PATH%
- '%DC% --version'
- dub test :utils --arch=%Darch% --compiler=%DC%
- dub test :data --arch=%Darch% --compiler=%DC%
- dub test :core --arch=%Darch% --compiler=%DC% --config=%CONFIG%
- dub test :stream --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :crypto --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :tls --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :textfilter --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :inet --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :mail --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :http --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :mongodb --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :redis --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- dub test :web --arch=%Darch% --compiler=%DC% --override-config=vibe-d:core/%CONFIG%
- echo TODO - run the test suite