-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
54 lines (47 loc) · 3.46 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 2017
build: off
environment:
COVERALLS_REPO_TOKEN:
secure: Vr7nMCBV2ywKPHGfXVodS22SWHbkqGJJHMeEAEskFMTZ4Q+P0XFxJlmToEwfvxsv
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
before_test:
- ECHO %APPVEYOR_REPO_COMMIT_MESSAGE%
- dotnet --info
- VersionNumber.bat
- Set Path=%Path%;C:\projects\leto\openssl
- Set MSBUILDDISABLENODEREUSE=1
- dotnet restore Leto.sln
- dotnet build -c Debug LETO.Sln
test_script:
- dotnet test test/Leto.OpenSslFacts/Leto.OpenSslFacts.csproj
- dotnet test test/Leto.ProtocolFacts/Leto.ProtocolFacts.csproj
- dotnet test test/Leto.EphemeralBufferFacts/Leto.EphemeralBufferFacts.csproj
- dotnet test test/Leto.MiddlewareFacts/Leto.MiddlewareFacts.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:"dotnet.exe" "-targetargs:test -c Debug test/Leto.ProtocolFacts/Leto.ProtocolFacts.csproj" -mergeoutput -mergebyhash -hideskipped:All -searchdirs:"..\test\Leto.ProtocolFacts\bin\Debug\netcoreapp1.1" -oldstyle -output:coverage.xml -skipautoprops -returntargetcode -filter:"+[Leto*]* -[*Facts*]*"')
- ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\OpenCover'))[0].FullName + '\tools\OpenCover.Console.exe' + ' -register:user -target:"dotnet.exe" "-targetargs:test -c Debug test/Leto.OpenSslFacts/Leto.OpenSslFacts.csproj" -mergeoutput -mergebyhash -hideskipped:All -searchdirs:"..\test\Leto.OpenSslFacts\bin\Debug\netcoreapp1.1;" -oldstyle -output:coverage.xml -skipautoprops -returntargetcode -filter:"+[Leto*]* -[*Facts*]* "')
- ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\OpenCover'))[0].FullName + '\tools\OpenCover.Console.exe' + ' -register:user -target:"dotnet.exe" "-targetargs:test -c Debug test/Leto.EphemeralBufferFacts/Leto.EphemeralBufferFacts.csproj" -mergeoutput -mergebyhash -hideskipped:All -searchdirs:"..\test\Leto.EphemeralBufferFacts\bin\Debug\netcoreapp1.1;" -oldstyle -output:coverage.xml -skipautoprops -returntargetcode -filter:"+[Leto*]* -[*Facts*]* "')
- ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\OpenCover'))[0].FullName + '\tools\OpenCover.Console.exe' + ' -register:user -target:"dotnet.exe" "-targetargs:test -c Debug test/Leto.MiddlewareFacts/Leto.MiddlewareFacts.csproj" -mergeoutput -mergebyhash -hideskipped:All -searchdirs:"..\test\Leto.MiddlewareFacts\bin\Debug\netcoreapp1.1;" -oldstyle -output:coverage.xml -skipautoprops -returntargetcode -filter:"+[Leto*]* -[*Facts*]* "')
- 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 src/Leto.EphemeralBuffers
- dotnet build -c Release src/Leto.WindowsAuthentication
- dotnet pack -c Release src/Leto.EphemeralBuffers --version-suffix %suffix%
- dotnet pack -c Release src/Leto.WindowsAuthentication --version-suffix %suffix%
artifacts:
- path: '**/*.nupkg'
name: nuget
- path: '**/log.txt'
name: testlog
deploy:
- provider: NuGet
server: https://www.myget.org/F/leto/api/v2/package
api_key:
secure: 5mBb0A2rlwk1Iq6FEo94XSORm9etc3xPn0oLZ8dIJ6Hmm1G7quqf+Bz6fm+ft+FK
skip_symbols: true
on:
branch: master