generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
65 lines (49 loc) · 1.87 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# default location for local nuget package source
NUGET_PACKAGES_LOCAL ?= ${HOME}/.nuget/local
build:
dotnet build
test: build
dotnet test --no-build
clean-smoke-tests:
rm -rf ./smoke-tests/collector/data.json
rm -rf ./smoke-tests/collector/data-results/*.json
rm -rf ./smoke-tests/report.*
clean: clean-smoke-tests
rm -rf ./examples/aspnetcore/bin/*
rm -rf ./examples/aspnetcore/obj/*
rm -rf ./test/Honeycomb.OpenTelemetry.Tests/bin/*
rm -rf ./test/Honeycomb.OpenTelemetry.Tests/obj/*
rm -rf ./src/Honeycomb.OpenTelemetry/bin/*
rm -rf ./src/Honeycomb.OpenTelemetry/obj/*
dotnet clean
smoke-tests/collector/data.json:
@echo ""
@echo "+++ Zhuzhing smoke test's Collector data.json"
@touch $@ && chmod o+w $@
smoke-sdk-grpc: smoke-tests/collector/data.json
@echo ""
@echo "+++ Running gRPC smoke tests."
@echo ""
cd smoke-tests && bats ./smoke-sdk-grpc.bats --report-formatter junit --output ./
smoke-sdk-http: smoke-tests/collector/data.json
@echo ""
@echo "+++ Running HTTP smoke tests."
@echo ""
cd smoke-tests && bats ./smoke-sdk-http.bats --report-formatter junit --output ./
smoke-sdk: smoke-sdk-grpc smoke-sdk-http
smoke: smoke-sdk
unsmoke:
@echo ""
@echo "+++ Spinning down the smokers."
@echo ""
cd smoke-tests && docker-compose down --volumes
## use this for local testing
resmoke: unsmoke smoke
${NUGET_PACKAGES_LOCAL}:
@mkdir -p ${NUGET_PACKAGES_LOCAL}
local_nuget_source_registered: ${NUGET_PACKAGES_LOCAL}
@dotnet nuget list source | grep -q '${NUGET_PACKAGES_LOCAL}' || dotnet nuget add source -n local ${NUGET_PACKAGES_LOCAL}
publish_local: local_nuget_source_registered
@echo "Publishing nuget package(s) to: ${NUGET_PACKAGES_LOCAL}\n"
@dotnet pack -c release -o ${NUGET_PACKAGES_LOCAL} -p:signed=false
.PHONY: build test clean smoke unsmoke resmoke local_nuget_source_registered publish_local smoke-sdk-grpc smoke-sdk-http smoke-sdk clean-smoke-tests