-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
54 lines (45 loc) · 1.97 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
43
44
45
46
47
48
49
50
51
52
53
54
branches:
only:
- master
configuration: Release
max_jobs: 1
before_build:
- cmd: nuget restore BoletoSimplesApiClient.sln
# environment variables
environment:
# this is how to set encrypted variable. Go to "Encrypt data" page in account menu to encrypt data.
COVERALLS_REPO_TOKEN:
secure: lfx05qEv1NkAn5yZNKm7UI/SYe15htUM7c6HNOIuU/YMVR57NeFVziDgM4Uf5jS7
# build cache to preserve files/folders between builds
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
build:
project: BoletoSimplesApiClient.sln
verbosity: minimal
before_package:
- ps: nuget pack -Version $env:APPVEYOR_BUILD_VERSION BoletoSimples-Client.nuspec
artifacts:
- path: '**\Boletosimples-Client*.nupkg'
before_deploy:
- ps: nuget pack -Version $env:APPVEYOR_BUILD_VERSION Boletosimples-Client.nuspec
after_test:
- ps: packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -filter:"+[BoletoSimplesApiClient]BoletoSimplesApiClient*" -target:"packages\NUnit.ConsoleRunner.3.6.1\tools\nunit3-console.exe" "-targetargs:BoletoSimplesApiClient.IntegratedTests\bin\Release\BoletoSimplesApiClient.IntegratedTests.dll BoletoSimplesApiClient.UnitTests\bin\Release\BoletoSimplesApiClient.UnitTests.dll" -output:coverage.xml
- ps: packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml
deploy:
- provider: NuGet
api_key:
secure: WeWJBPpPgq79VsstZzkjEwVqnZM85T1bEd42sQxxVwu3/yPKUDfSvW/E8noMpBVv
artifact: /Boletosimples-Client.*\.nupkg/
skip_symbols: true
on:
branch: master
- provider: GitHub
tag: $(appveyor_build_version)
release: Stable $(appveyor_build_version)
description: "Versão estável do client .Net para acesso a API do BoletoSimples"
force_update: true
appveyor_repo_tag: true
auth_token:
#GitHub trocar pelo da conta boletosimples-ci
secure: EJCiUbMZOzdu1xi1+9GgprukVKCbCqbhrHH24IjRIzG96NGG2u3WNSBd93wKXflg
artifact: /BoletoSimples-Client.*\.nupkg/