-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
49 lines (35 loc) · 1.54 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
TARBALL := $(shell echo "skupper/skupper/skupper-skupper-`grep -E '^version:' skupper/skupper/galaxy.yml | awk '{print $$NF}'`.tar.gz")
all: ansible-lint build-docs
dep:
pip install -r ./requirements.txt
pip install -r ./skupper/skupper/tests/unit/requirements.txt
pip install -r ./skupper/skupper/docs/requirements.txt
ansible-lint:
cd skupper/skupper && ansible-lint -v
release-changelog:
pip install --user -U antsibull-changelog
cd skupper/skupper && antsibull-changelog release
build-docs: build install
rm -rf ./skupper/skupper/docs/*
antsibull-docs sphinx-init --use-current --dest-dir ./skupper/skupper/docs skupper.skupper
(cd skupper/skupper/docs && pip install --user -U -r requirements.txt && ./build.sh) && \
rm -rf ./docs && mv skupper/skupper/docs/build/html/ ./docs && touch ./docs/.nojekyll
rm -rf ./skupper/skupper/docs/*
build: clean
cd skupper/skupper && ansible-galaxy collection build
clean:
@[[ -f "$(TARBALL)" ]] && rm $(TARBALL) || true
install:
@[[ -f "$(TARBALL)" ]] && true || (echo "Collection has not been built" && false)
@ansible-galaxy collection install -f "$(TARBALL)"
sanity-tests:
cd skupper/skupper && ansible-test sanity -v --color
unit-tests:
cd skupper/skupper && ansible-test units -vvv --color
e2e-setup:
cd examples/hello-world && ansible-playbook -i inventory.yml setup.yml
e2e-validate:
cd examples/hello-world && ansible-playbook -i inventory.yml test.yml
e2e-teardown:
cd examples/hello-world && ansible-playbook -i inventory.yml teardown.yml
e2e-test: e2e-setup e2e-validate e2e-teardown