This repository has been archived by the owner on Feb 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
appveyor.yml
40 lines (40 loc) · 1.51 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
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
nuget:
disable_publish_on_pr: true
configuration: Release
environment:
COVERALLS_REPO_TOKEN:
secure: VaoXqrBdXlsfTTyw2gXbSCvLkOKmb+ick5BAhLdERh/bM6cbgIkOS44IMFL/jH5/
init:
- ps: iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/PureKrome/0f79e25693d574807939/raw/8cf3160c9516ef1f4effc825c0a44acc918a0b5a/appveyor-build-info.ps'))
before_build:
- nuget install OpenCover -Version 4.6.519 -OutputDirectory .\OpenCover
- nuget install coveralls.net -Version 0.6.0 -OutputDirectory .\coveralls.net
- dotnet restore
build_script:
- dotnet build src\GraphQLCore --configuration Release
- ps: .\CreateArtifacts.ps1
test_script:
- dotnet test .\test\GraphQLCore.Tests\
- where dotnet
- .\OpenCover\OpenCover.4.6.519\tools\OpenCover.Console.exe -oldstyle -target:"C:\\Program Files\\dotnet\\dotnet.exe" -targetargs:"test .\test\GraphQLCore.Tests" -output:coverage.xml -register:user
- .\coveralls.net\coveralls.net.0.6.0\tools\csmacnz.coveralls.exe --opencover -i .\coverage.xml
artifacts:
- path: .\artifacts\**\*.nupkg
name: NuGet
deploy:
- provider: NuGet
server: https://www.myget.org/F/graphqlcore-ci/api/v2/package
api_key:
secure: HBFsroegv2i8MgKqviGCPhk+1MuouIORGImfdz2jZl4CJOkmOgU6XbwvHdA0O+vf
skip_symbols: true
on:
branch: develop
- provider: NuGet
name: production
api_key:
secure: /MthxnuF3ameISXW4ic3FRRjIc8VU/KFxOOFUHLlH7pJwRftyq8WG+28KGnQGg12
on:
branch: master