forked from rhargreaves/oauth-dotnetcore
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·34 lines (29 loc) · 684 Bytes
/
Makefile
File metadata and controls
executable file
·34 lines (29 loc) · 684 Bytes
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
DOTNET=docker run \
-v $(shell pwd):/app \
-w /app \
-it \
mcr.microsoft.com/dotnet/core/sdk:2.2-alpine \
dotnet
CSPROJ=src/OAuth/OAuth.csproj
VERSION=3.0.0
build:
$(DOTNET) build \
-f netstandard2.0 \
-p:Version=$(VERSION) \
$(CSPROJ)
pack:
FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5 \
dotnet pack \
-c Release \
-p:Version=$(VERSION) \
$(CSPROJ)
test: build
$(DOTNET) test \
-f netcoreapp2.2 \
tests/OAuth.UnitTests/OAuth.UnitTests.csproj
nuget-push: pack
dotnet nuget push \
src/OAuth/bin/Release/OAuth.DotNetCore.$(VERSION).nupkg \
-k $(NUGET_KEY) \
-s nuget.org
.PHONY: build test pack nuget-push