-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
executable file
·39 lines (29 loc) · 1.02 KB
/
Makefile
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
#!/usr/bin/make -f
SOLUTION_FILE := src/smartystreets-dotnet-sdk.sln
PROJECT_FILE := src/sdk/sdk.csproj
TEST_FILE := src/tests/tests.csproj
CONFIGURATION := Release
WORKSPACE_DIR := workspace
# https://github.com/dotnet/sdk/issues/335
export FrameworkPathOverride=$(dir $(shell which mono))/../lib/mono/4.0-api/
clean:
rm -rf "$(WORKSPACE_DIR)"
dotnet clean "$(SOLUTION_FILE)"
compile: clean
dotnet build "$(SOLUTION_FILE)" --configuration "$(CONFIGURATION)"
test:
dotnet test "$(TEST_FILE)"
integrate:
dotnet run --project "src/integration/integration.csproj"
package: clean
dotnet pack $(PROJECT_FILE) --configuration $(CONFIGURATION) \
--include-source \
--include-symbols \
--output ../../$(WORKSPACE_DIR) \
/p:CustomVersion=${VERSION}
publish: clean package
dotnet nuget push ../../$(WORKSPACE_DIR)/* --source nuget.org -k "${NUGET_KEY}" --skip-duplicate
##########################################################
release:
make publish
.PHONY: clean compile test integrate package publish version release