-
Notifications
You must be signed in to change notification settings - Fork 28
/
appveyor.yml
54 lines (46 loc) · 2.15 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
os: Visual Studio 2019 Preview
build: off
environment:
sonarkey:
secure: dqF6V11A7InHKcyOX6WDGE3oA54yZQm0r9VLio85ndCn2B8d9zVI2mJ3lQdDzO3o
COVERALLS_REPO_TOKEN:
secure: x41DSerLXKgGVbKIokF+zuR3eNRVJXsgJA6j5yggnCB8/TTyYfa/2euNflfGzCot
install:
- cmd: curl -fsS -o consul.zip https://releases.hashicorp.com/consul/1.4.4/consul_1.4.4_windows_amd64.zip
- cmd: 7z x consul.zip -o"C:\Consul" -y > nul
- ps: $MyProcess = Start-Process C:\Consul\consul.exe -ArgumentList "agent -server -log-level err -bootstrap-expect 1 -data-dir C:\Consul\Data -advertise=127.0.0.1" -PassThru
before_test:
- ECHO %APPVEYOR_REPO_COMMIT_MESSAGE%
- dotnet --info
- VersionNumber.bat
- dotnet restore
test_script:
# Build sample
- dotnet test test/CondenserTests/CondenserTests.csproj
- dotnet test test/Condenser.Tests.Integration/Condenser.Tests.Integration.csproj
after_test:
# Build and pack source
- ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\OpenCover'))[0].FullName + '\tools\OpenCover.Console.exe' + ' -register:user -target:".\script\runtests.bat" -searchdirs:"..\test\Condenser.Tests.Integration\bin\Debug\netcoreapp3.10;..\test\CondenserTests\bin\debug\netcoreapp3.0" -oldstyle -output:coverage.xml -skipautoprops -hideskipped:All -returntargetcode -filter:"+[Condenser*]* -[*Test*]*"')
- ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\coveralls.io'))[0].FullName + '\tools\coveralls.net.exe' + ' --opencover coverage.xml')
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "coverage.xml"
- dotnet build -c Release
- dotnet pack -c Release src/CondenserDotNet.Client
- dotnet pack -c Release src/CondenserDotNet.Core
- dotnet pack -c Release src/CondenserDotNet.Configuration
- dotnet pack -c Release src/CondenserDotNet.Middleware
artifacts:
- path: '**/*.nupkg'
name: packages
- path: 'coverage.xml'
name: coverage
type: zip
deploy:
- provider: NuGet
server: https://www.myget.org/F/condenserdotnet/api/v2/package
api_key:
secure: F4U6pELKG7NqzEZXyr7WmOySddam2tpYB1LqAPlJAKGT2WRukOZRtWk8ZBuZ+nzs
skip_symbols: true
on:
branch: master