forked from openstack-k8s-operators/data-plane-adoption
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (45 loc) · 1.99 KB
/
Makefile
File metadata and controls
62 lines (45 loc) · 1.99 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
TEST_INVENTORY ?= tests/inventory.yaml
TEST_VARS ?= tests/vars.yaml
TEST_SECRETS ?= tests/secrets.yaml
TEST_CONFIG ?= tests/ansible.cfg
# String with comma seperated tags which will be passed to skip-tags during ansible-playbok run to skip part of tests
TESTS_TO_SKIP ?=
### TESTS ###
test-minimal: TEST_OUTFILE := tests/logs/test_minimal_out_$(shell date +%FT%T%Z).log
test-minimal:
mkdir -p tests/logs
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_VARS) -e @$(TEST_SECRETS) $(if $(TESTS_TO_SKIP),--skip-tags ${TESTS_TO_SKIP}) tests/playbooks/test_minimal.yaml 2>&1 | tee $(TEST_OUTFILE)
test-with-ceph: TEST_OUTFILE := tests/logs/test_with_ceph_out_$(shell date +%FT%T%Z).log
test-with-ceph:
mkdir -p tests/logs
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_VARS) -e @$(TEST_SECRETS) $(if $(TESTS_TO_SKIP),--skip-tags ${TESTS_TO_SKIP}) tests/playbooks/test_with_ceph.yaml 2>&1 | tee $(TEST_OUTFILE)
test-swift-migration: TEST_OUTFILE := tests/logs/test_swift_migration_out_$(shell date +%FT%T%Z).log
test-swift-migration:
mkdir -p tests/logs
ANSIBLE_CONFIG=$(TEST_CONFIG) ansible-playbook -v -i $(TEST_INVENTORY) -e @$(TEST_VARS) -e @$(TEST_SECRETS) tests/playbooks/test_swift_migration.yaml 2>&1 | tee $(TEST_OUTFILE)
### DOCS ###
docs-dependencies: .bundle
.bundle:
if ! type bundle; then \
echo "Bundler not found. On Linux run 'sudo dnf install /usr/bin/bundle' to install it."; \
exit 1; \
fi
bundle config set --local path 'local/bundle'; bundle install
docs: docs-dependencies docs-user-all-variants docs-dev
docs-user-all-variants:
cd docs_user; BUILD=upstream $(MAKE) html
cd docs_user; BUILD=downstream $(MAKE) html
docs-user:
cd docs_user; $(MAKE) html
docs-user-open:
cd docs_user; $(MAKE) open-html
docs-user-watch:
cd docs_user; $(MAKE) watch-html
docs-dev:
cd docs_dev; $(MAKE) html
docs-dev-open:
cd docs_dev; $(MAKE) open-html
docs-dev-watch:
cd docs_dev; $(MAKE) watch-html
docs-clean:
rm -r docs_build