-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (24 loc) · 1.14 KB
/
Copy pathmakefile
File metadata and controls
34 lines (24 loc) · 1.14 KB
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
GOLANG_VERSION=$(shell cat go.mod | egrep "^go\s" | cut -d ' ' -f 2)
setup_local_dev:
docker run --rm -v ${PWD}/resources/weakkeys:/tmp ghcr.io/jsandas/debian-weakkeys bash -c "/bin/cp /usr/share/openssl-blacklist/* /tmp"
build:
docker build -t tlstools --target server .
docker build -t tlstools-cli --target cli .
build_nocache:
docker build --no-cache -t tlstools --target server .
docker build --no-cache -t tlstools-cli --target cli .
fresh: build_nocache run
integration: run
python3 test_setup/integration_tests.py
run: setup_local_dev build
docker compose -f test_setup/integrations.yaml pull --quiet --ignore-pull-failures
docker compose -f test_setup/integrations.yaml up -d
stop:
docker compose -f test_setup/integrations.yaml down
unit: setup_local_dev
(cd test_setup && ./gen-certs.sh)
go test -count=1 ./... -coverprofile=coverage.out -covermode=atomic
unit_docker: setup_local_dev
docker build -t tlstools_build --target build .
docker run -v ${PWD}:/go/src/tlstools -w /go/src/tlstools --rm tlstools_build \
bash -c "(cd test_setup && ./gen-certs.sh) && go test -count=1 ./... -coverprofile=coverage.out -covermode=atomic"