-
Notifications
You must be signed in to change notification settings - Fork 57
/
Makefile
36 lines (31 loc) · 925 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
36
.PHONY: all
all: build-binary build-container
.PHONY: clean
clean:
# not sure if we should remove generated stuff
# keep the output directory itself
#-rm -rf output/*
rm -rf bin
@echo "removing test files that might be owned by root"
sudo rm -rf /var/tmp/bib-tests
.PHONY: test
test:
@echo "Be aware that the tests take a really long time"
@echo "Running tests as root"
sudo -E pip install --user -r test/requirements.txt
sudo -E pytest -s -v
.PHONY: build-binary
build-binary:
./build.sh
.PHONY: build-container
build-container:
sudo podman build --tag bootc-image-builder .
.PHONY: push-check
push-check: build-binary build-container test
cd bib; go fmt ./...
@if [ 0 -ne $$(git status --porcelain --untracked-files|wc -l) ]; then \
echo "There should be no changed or untracked files"; \
git status --porcelain --untracked-files; \
exit 1; \
fi
@echo "All looks good - congratulations"