-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 896 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 896 Bytes
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
SHELL := /bin/bash
GOCACHE ?= $(CURDIR)/.gocache
.PHONY: build build-daemon test test-unit test-integration test-vm vm-create vm-shell vm-bootstrap vm-delete clean
build:
GOCACHE=$(GOCACHE) go build ./cmd/atomic
test: test-unit test-integration
test-unit:
GOCACHE=$(GOCACHE) go test ./internal/... ./cmd/...
test-integration:
@if [ "$$(uname -s)" != "Linux" ]; then \
echo "integration tests require Linux"; \
else \
GOCACHE=$(GOCACHE) ./integration/e2e/run_all.sh; \
fi
test-vm:
limactl shell atomic-ubuntu -- bash -lc 'cd /Users/karanhanda/atomic && GOCACHE=/tmp/atomic-gocache make test'
vm-create:
limactl start --name=atomic-ubuntu template://ubuntu
vm-shell:
limactl shell atomic-ubuntu
vm-bootstrap:
limactl shell atomic-ubuntu -- bash /Users/karanhanda/atomic/scripts/vm/bootstrap-ubuntu.sh
vm-delete:
limactl delete --force atomic-ubuntu
clean:
rm -rf .gocache