-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
33 lines (28 loc) · 1.12 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
image: Visual Studio 2017
version: 2.5.{build}
install:
# .NET Core SDK binaries
- ps: $urlCurrent = "https://aka.ms/dotnet-sdk-2.0.0-win-x64"
- ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetsdk"
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: $tempFileCurrent = [System.IO.Path]::GetTempFileName()
- ps: (New-Object System.Net.WebClient).DownloadFile($urlCurrent, $tempFileCurrent)
- ps: Add-Type -AssemblyName System.IO.Compression.FileSystem; [System.IO.Compression.ZipFile]::ExtractToDirectory($tempFileCurrent, $env:DOTNET_INSTALL_DIR)
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
build_script:
- build\build.cmd
- dotnet restore -v quiet
- ps: dotnet build /p:configuration=Release /p:Version=$($env:appveyor_build_version)-beta
test_script:
- dotnet test test/WebOptimizer.TypeScript.Test.csproj
artifacts:
- path: src\bin\release\*.nupkg
name: NuGet package
deploy:
- provider: NuGet
artifact: /NuGet/
api_key:
secure: 6xBu/05BWJDPa2PRkxEH3PHU/caLvy2lzf1eWdRBGXwSCTejHtI+6e0V4s2LaVri
on:
branch: master
appveyor_repo_commit_message_extended: /\[release\]/