-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
33 lines (31 loc) · 1.2 KB
/
.drone.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
kind: pipeline
name: default
steps:
- name: build
image: mcr.microsoft.com/dotnet/core/sdk:3.1
commands:
- dotnet restore
- dotnet build -c Debug
- dotnet tool install -g dotnet-reportgenerator-globaltool
- dotnet test -c Debug --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include=[Base64UrlCore.*]*
- curl -s https://codecov.io/bash > codecov
- chmod +x codecov
# - ./codecov -f ./tests/Base64UrlCore.Tests/coverage.opencover.xml
when:
event:
- push
# - name: deploy
# image: mcr.microsoft.com/dotnet/core/sdk:3.1
# environment:
# NUGET_KEY:
# from_secret: NUGET_KEY
# commands:
# - dotnet restore
# - dotnet build -c Release
# - dotnet pack ./src/base64urls/base64urls.csproj -c Release --no-build -p:Version=${DRONE_TAG}
# - dotnet nuget push ./src/base64urls/bin/Release/base64urls.${DRONE_TAG}.nupkg -s https://www.nuget.org/api/v2/package -k ${NUGET_KEY}
# - dotnet pack ./src/Base64UrlCore/Base64UrlCore.csproj -c Release --no-build -p:Version=${DRONE_TAG}
# - dotnet nuget push ./src/Base64UrlCore/bin/Release/Base64UrlCore.${DRONE_TAG}.nupkg -s https://www.nuget.org/api/v2/package -k ${NUGET_KEY}
# when:
# event:
# - tag