forked from iugu/iugu-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (44 loc) · 1.78 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
55
version: 1.9.{build}
branches:
only:
- master
configuration: Release
before_build:
- cmd: nuget restore iugu.net.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: tzJaiCu+KTkI3cNVQHyEN1r8ZcwjZO5YprnoWkcT5mwYrJOztiUJA27XrAR0pPkQ
# 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: iugu.net.sln
verbosity: minimal
before_package:
- ps: nuget pack -Version $env:APPVEYOR_BUILD_VERSION iugu.net.nuspec
artifacts:
- path: '**\iugu.net*.nupkg'
before_deploy:
- ps: nuget pack -Version $env:APPVEYOR_BUILD_VERSION iugu.net.nuspec
after_test:
- ps: packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -filter:"+[iugu.net]iugu.net*" -target:"packages\NUnit.ConsoleRunner.3.6.0\tools\nunit3-console.exe" "-targetargs:iugu.net.IntegratedTests\bin\Release\iugu.net.IntegratedTests.dll iugu.net.UnitTests\bin\Release\iugu.net.UnitTests.dll" -output:coverage.xml
- ps: packages\coveralls.io.1.3.4\tools\coveralls.net.exe --opencover coverage.xml
deploy:
- provider: NuGet
api_key:
# hes6+pR6nw0j4WOkNJ4fBdcIotF2A0+b+rg8kJtBtay32hToZnCgdckPUNoMm2fF Nuget da conta da IUGU
secure: yVnwQrFVedb/RyaiSlhL0rlb5S1A+ICdsIBKzUlAgPqGOxF3XfxZIrJ21bWFMIRd
artifact: /iugu.net.*\.nupkg/
on:
branch: master
- provider: GitHub
tag: $(appveyor_build_version)
release: "Stable - v$(appveyor_build_version)"
description: "Versão estável do iugu.net"
auth_token:
secure: Nda/bZCNmkZTzHTnIhHJgqVmQ1cbgvArT6rIFWFpwlkz3c4d6I+joPIyvmJC01yG
artifact: /iugu.net.*\.nupkg/
on:
branch: master