Skip to content

Commit

Permalink
Deploy windows builds built by ldc
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Fediushin committed Aug 30, 2017
1 parent cd1f299 commit e6524f8
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version: 1.0.{build}

platform: x64

skip_tags: false

image: Visual Studio 2015
Expand Down Expand Up @@ -61,11 +63,31 @@ install:
- '%VCVARSALL% %VCVARS%'

build_script:
- ps: echo "Here we go!";
- ps: if($env:DC -eq "ldc2" -and $env:APPVEYOR_REPO_TAG -eq "true") {
dub build -b release --compiler=$env:DC --arch=$env:ARCH;
$archive = "covered-$($env:APPVEYOR_REPO_TAG_NAME)-windows-$($env:DC)-$($env:ARCH).zip";
echo "Compressing binaries -> $($archive)";
7z a $archive covered.exe > $null;
}

test_script:
- ps: dub build -b debug --compiler=$env:DC --arch=$env:ARCH;
- ps: $ErrorActionPreference = "SilentlyContinue";
dub build -b unittest -c unittest --compiler=$env:DC --arch=$env:ARCH;
$ErrorActionPreference = "Continue";
.\.dub\unittest.exe -t -s -d;

artifacts:
- path: covered-*.zip
name: bin

deploy:
provider: GitHub
auth_token:
secure: "+9yH5FXyqCRKTj30Mil9a+V83mmAJq4oQqpFdUPP3Byi3XqeuH2uR4loGxfIvS6x"
artifact: bin
draft: false
prerelease: false
on:
DC: "ldc2"
appveyor_repo_tag: true

0 comments on commit e6524f8

Please sign in to comment.