-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
96 lines (89 loc) · 2.76 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
platform: x64
environment:
matrix:
- DC: dmd
#DVersion: latest
arch: x64
- DC: dmd
DVersion: 2.108.0
arch: x64
- DC: ldc
#DVersion: latest
arch: x64
- DC: ldc
DVersion: 1.38.0
arch: x64
branches:
except:
- /circleci-.*/
- /travis-.*/
- gh-pages
- /dustmite-.*/
- /github-.*/
install:
- ps: function SetUpDCompiler
{
mkdir "$env:USERPROFILE\dlang" -Force;
Invoke-WebRequest "https://dlang.org/install.sh" -OutFile "$env:USERPROFILE\dlang\install.sh";
pushd;
cd "$env:USERPROFILE\dlang";
if (Test-Path env:DVersion) {
& bash install.sh install $env:DC-$env:DVersion;
$env:activator = & bash install.sh install $env:DC-$env:DVersion -a;
}
else {
& bash install.sh install $env:DC;
$env:activator = & bash install.sh install $env:DC -a;
}
popd;
}
#- ps: for ($i = 0; $i -lt 5; $i++)
#{
#SetUpDCompiler;
#if (Test-Path "$env:USERPROFILE\dlang\$env:DC-*") {
#break;
#}
#}
- ps: SetUpDCompiler
- "%activator%"
before_build:
- ps: $env:toolchain = "msvc";
- ps: if ($env:arch -eq "x86") {
$env:compilersetupargs = "x86";
$env:Darch = "x86";
$env:DConf = "m32";
}
elseif ($env:arch -eq "x64") {
$env:compilersetupargs = "amd64";
$env:Darch = "x86_64";
$env:DConf = "m64";
}
- ps: if ($env:DC -eq "ldc") {
$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 - dont remove me
#- git clone https://github.com/zorael/lu.git
#- git clone https://github.com/zorael/dialect.git
#- dub add-local lu
#- dub add-local dialect
test_script:
- echo %DC% on %PLATFORM% (%Darch%)
- '%DC% --version'
- dub --version
#- echo "Full tests may fail due to https://issues.dlang.org/show_bug.cgi?id=20048"
- dub test --compiler=%DC% --arch=%Darch%
- dub build --nodeps --compiler=%DC% --arch=%Darch% -b debug -c dev
#- mv kameloso.exe kameloso-dev.exe
- dub build --nodeps --compiler=%DC% --arch=%Darch% -b plain -c dev
#- mv kameloso.exe kameloso-dev-plain.exe
- dub build --nodeps --compiler=%DC% --arch=%Darch% -b release -c dev
#- mv kameloso.exe kameloso-dev-release.exe
- dub build --nodeps --compiler=%DC% --arch=%Darch% -b debug -c twitch
#- mv kameloso.exe kameloso-twitch.exe # keep artifact as kameloso.exe
after_test:
- ps: if ($env:APPVEYOR_REPO_TAG -eq "True") {
Push-AppveyorArtifact kameloso.exe -DeploymentName "Full build";
}