forked from hardkoded/puppeteer-sharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (37 loc) · 1.18 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
version: 1.0.{build}
branches:
only:
- master
image: Visual Studio 2017
configuration: Release
environment:
git_access_token:
secure: FxcQ9C8a/NgcQB5dFdZts6ZWEDT4zMhA4qPQAYwWc7huMmhmTIl1sbFEIaAWQMTL
matrix:
- framework: net471
- framework: netcoreapp2.2
install:
- ps: >-
if($env:APPVEYOR_REPO_TAG -eq 'True' -And $env:framework -eq 'netcoreapp2.0') {
choco install docfx
}
before_build:
- ps: >-
dotnet restore .\lib\PuppeteerSharp.sln
New-SelfSignedCertificate -Subject "localhost" -FriendlyName "Puppeteer" -CertStoreLocation "cert:\CurrentUser\My"
Get-ChildItem -Path cert:\CurrentUSer\my | where { $_.friendlyname -eq "Puppeteer" } | Export-Certificate -FilePath C:\projects\puppeteer-sharp\lib\PuppeteerSharp.TestServer\testCert.cer
build:
project: .\lib\PuppeteerSharp.sln
publish_nuget: true
include_nuget_references: true
verbosity: minimal
test_script:
- cmd: >-
cd .\lib\PuppeteerSharp.Tests
dotnet test -f %framework% -s test.runsettings
on_success:
- ps: >-
cd c:\projects\puppeteer-sharp
c:\projects\puppeteer-sharp\appveyor\GenerateDocs.ps1
cache:
- $HOME/.nuget/packages