forked from B1tF8er/bit-logger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
54 lines (43 loc) · 1.47 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
branches:
only:
- master
install:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v4.0.0/nuget.exe
skip_commits:
files:
- .gitattributes
- .gitignore
- LICENSE
- README.md
only_commits:
files:
- src/
- test/
environment:
COVERALLS_REPO_TOKEN:
secure: 0n47+7c3YiptuHdHw7IBRhdFghphRyIbAQ2u0HiUV8D8mE2AqBK17naDGOuvM1/q
before_build:
- dotnet --version
- dotnet restore ./src/Bit.Logger
- dotnet restore ./test/Bit.Logger.Tests
build_script:
# Build and pack project
- dotnet build ./src/Bit.Logger -c Release -o ../../artifacts/build
- dotnet pack ./src/Bit.Logger -c Release -o ../../artifacts/nupkg
test_script:
# Build tests project
- dotnet build ./test/Bit.Logger.Tests -c Release
after_test:
# Run tests and create coverage file to send to coveralls.io
- dotnet test ./test/Bit.Logger.Tests -c Release --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="../coverage.xml" /p:Exclude=\"[xunit.*]*,[Bit.Logger]Bit.Logger.Migrations.*\"
- ps: iex ((Get-ChildItem ($env:USERPROFILE + '\.nuget\packages\coveralls.io'))[0].FullName + '\tools\coveralls.net.exe' + ' --opencover ./test/coverage.xml --full-sources false')
artifacts:
- path: ./artifacts/nupkg/*.nupkg
- path: ./artifacts/build/*.dll
deploy:
provider: NuGet
api_key:
secure: +2AaGHKoOIWmNfKFxki/UbdUAek+BS82xkNBx31eB4YM3mdN/a5mCX3eamZIwqsm
skip_symbols: true
artifact: /.*\.nupkg/