-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
35 lines (30 loc) · 1.19 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
image: Visual Studio 2017
version: 7.1.{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"
# Install Node.js
- ps: Install-Product node $env:nodejs_version
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.AutoPrefixer.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\]/