forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (29 loc) · 816 Bytes
/
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
SYSTEM_ARCH=$(shell go env GOARCH)
OS=$(shell go env GOOS)
.PHONY: test clean stop build all build-binaries
test:
# Build binaries if they don't exist
test -f "../build/teleport" || make build-binaries
docker compose up --abort-on-container-exit --exit-code-from e2e
clean:
docker volume rm e2e_teleport-config e2e_teleport-data
stop:
docker compose down
build:
docker compose build --build-arg BUILDARCH=$(SYSTEM_ARCH)
docker compose create
build-binaries:
# Use Docker to build binaries on MacOS as the testsuite runs in a Linux container
ifeq ($(OS),darwin)
ARCH=$(SYSTEM_ARCH) make -C ../build.assets/ build-binaries
else ifeq ($(OS),linux)
make -C ../ full
else
@echo "Unsupported OS: $(OS)"
@exit 1
endif
all:
make stop
make clean || true # ignore if no volumes exist
make build
make test