2017-01-23 08:01:17 +00:00
|
|
|
platform: x64
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.082.0
|
2017-01-23 08:01:17 +00:00
|
|
|
arch: x64
|
2017-03-09 10:39:59 +00:00
|
|
|
config: winapi
|
2017-01-23 08:01:17 +00:00
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.082.0
|
2017-01-23 08:01:17 +00:00
|
|
|
arch: x86
|
2017-03-09 10:56:55 +00:00
|
|
|
config: winapi-optlink
|
2018-03-03 17:40:36 +00:00
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.082.0
|
2018-03-03 17:40:36 +00:00
|
|
|
arch: x86_mscoff
|
|
|
|
config: winapi
|
2018-03-03 17:01:34 +00:00
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.081.2
|
2018-03-03 17:01:34 +00:00
|
|
|
arch: x86_mscoff
|
|
|
|
config: winapi
|
2017-03-09 10:35:19 +00:00
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.080.1
|
2017-12-17 11:09:29 +00:00
|
|
|
arch: x86
|
|
|
|
config: select-optlink
|
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.079.0
|
2017-03-09 10:39:59 +00:00
|
|
|
arch: x86
|
2017-03-09 10:56:55 +00:00
|
|
|
config: select-optlink
|
2017-07-21 19:43:40 +00:00
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.078.3
|
2017-07-21 19:43:40 +00:00
|
|
|
arch: x64
|
|
|
|
config: winapi
|
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.077.1
|
2017-07-21 19:43:40 +00:00
|
|
|
arch: x64
|
|
|
|
config: winapi
|
2017-01-23 08:01:17 +00:00
|
|
|
- DC: dmd
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 2.076.1
|
2017-01-23 08:01:17 +00:00
|
|
|
arch: x64
|
2017-03-09 10:39:59 +00:00
|
|
|
config: winapi
|
2018-03-03 17:01:34 +00:00
|
|
|
- DC: ldc
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 1.11.0
|
2018-03-03 17:01:34 +00:00
|
|
|
arch: x64
|
|
|
|
config: winapi
|
2017-12-17 11:09:29 +00:00
|
|
|
- DC: ldc
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 1.10.0
|
2017-12-17 11:09:29 +00:00
|
|
|
arch: x64
|
|
|
|
config: winapi
|
|
|
|
- DC: ldc
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 1.9.0
|
2017-12-17 11:09:29 +00:00
|
|
|
arch: x86
|
|
|
|
config: winapi
|
|
|
|
- DC: ldc
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 1.8.0
|
2017-12-17 11:09:29 +00:00
|
|
|
arch: x64
|
|
|
|
config: winapi
|
2017-07-21 19:43:40 +00:00
|
|
|
- DC: ldc
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 1.7.0
|
2017-01-23 08:01:17 +00:00
|
|
|
arch: x64
|
2017-03-09 10:39:59 +00:00
|
|
|
config: winapi
|
2017-01-23 08:01:17 +00:00
|
|
|
- DC: ldc
|
2018-10-02 09:13:11 +00:00
|
|
|
DVersion: 1.6.0
|
2017-01-23 09:13:08 +00:00
|
|
|
arch: x64
|
2017-03-09 10:39:59 +00:00
|
|
|
config: winapi
|
2017-01-23 08:01:17 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- CONFIG: libasync
|
|
|
|
|
|
|
|
skip_tags: false
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
|
|
|
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;
|
2018-03-03 18:34:27 +00:00
|
|
|
if ([System.Version]$version -lt [System.Version]"1.7.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-multilib.7z" -OutFile "c:\ldc.7z";
|
|
|
|
echo "finished.";
|
|
|
|
pushd c:\\;
|
|
|
|
7z x ldc.7z > $null;
|
|
|
|
popd;
|
|
|
|
}
|
2017-01-23 08:01:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
- ps: SetUpDCompiler
|
2018-03-11 11:20:02 +00:00
|
|
|
- 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
|
2017-01-23 08:01:17 +00:00
|
|
|
- 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";
|
|
|
|
}
|
2017-03-09 10:39:59 +00:00
|
|
|
elseif($env:arch -eq "x86_mscoff"){
|
|
|
|
$env:compilersetupargs = "x86";
|
|
|
|
$env:Darch = "x86_mscoff";
|
|
|
|
}
|
2017-01-23 08:01:17 +00:00
|
|
|
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;
|
2018-03-03 18:34:27 +00:00
|
|
|
if ([System.Version]$version -lt [System.Version]"1.7.0") {
|
|
|
|
$env:PATH += ";C:\ldc2-$($version)-win64-msvc\bin";
|
|
|
|
} else {
|
|
|
|
$env:PATH += ";C:\ldc2-$($version)-windows-multilib\bin";
|
|
|
|
}
|
2017-01-23 08:01:17 +00:00
|
|
|
$env:DC = "ldc2";
|
|
|
|
}
|
|
|
|
- ps: $env:compilersetup = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall";
|
|
|
|
- '"%compilersetup%" %compilersetupargs%'
|
|
|
|
|
|
|
|
build_script:
|
2017-01-23 08:08:24 +00:00
|
|
|
- dub build -b release --arch=%Darch% --compiler=%DC% --config=%CONFIG%
|
2017-01-23 08:01:17 +00:00
|
|
|
- echo dummy build script - dont remove me
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- echo %PLATFORM%
|
|
|
|
- echo %Darch%
|
|
|
|
- echo %DC%
|
|
|
|
- echo %PATH%
|
|
|
|
- '%DC% --version'
|
|
|
|
- dub test --arch=%Darch% --compiler=%DC% --config=%CONFIG%
|