-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.justfile
28 lines (23 loc) · 1000 Bytes
/
.justfile
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
set dotenv-load
# Benchmark the Go sources.
benchmark:
@cd ./consistency && go test -bench .
# Create a local CA and sign a server certificate.
# This will only be used if domains = ["localhost"].
cert-dir := "./security/testdata"
make-certs:
@rm -rf {{cert-dir}} ; mkdir {{cert-dir}}
@brew install mkcert
@mkcert -install
@mkcert -key-file {{cert-dir}}/server.key -cert-file {{cert-dir}}/server.crt localhost 127.0.0.1 ::1
@mkcert -client -key-file {{cert-dir}}/client.key -cert-file {{cert-dir}}/client.crt localhost
@cp ~/Library/Application\ Support/mkcert/rootCA.pem {{cert-dir}}/ca.crt
# Create the plugins.
plugin:
@go build -buildmode=plugin -o ./extensibility/testdata/adapter.so ./extensibility/testdata/adapter.go
# Test the Go sources (Units).
test: plugin
@go test -v -coverprofile=.coverprofile.out github.com/andygeiss/cloud-native-utils/...
# Test module integration like the Server.
test-integration:
@go test -v --tags=integration ./...