forked from redhat-cop/cloud.vmware_ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.07 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
QUAY_USER ?= vmware_ops
QUAY_TAG ?= latest
.PHONY: install-python-packages
install-python-packages:
pip3 install -r tests/integration/requirements.txt
.PHONY: install-ansible-collections
install-ansible-collections:
ansible-galaxy collection install --upgrade -r tests/integration/requirements.yml
# workaround pyvmomy issue till latest version
# is available to use in requirements.txt
.PHONY: install-pyvmomy-latest
install-pyvmomy-latest:
pip3 install pyVmomi --force
.PHONY: integration
integration: install-python-packages install-ansible-collections
ansible-test integration --no-temp-workdir
.PHONY: eco-vcenter-ci
eco-vcenter-ci: install-python-packages install-ansible-collections install-pyvmomy-latest
@for dir in $(shell ansible-test integration --list-target --no-temp-workdir | grep 'vmware_ops_'); do \
ansible-test integration --no-temp-workdir $$dir; \
done
.PHONY: ee-clean
ee-clean:
rm -rf context/
.PHONY: ee-build
ee-build: ee-clean
ansible-builder build -f execution-environment/execution-environment.yml -t quay.io/${QUAY_USER}/vmware:${QUAY_TAG} -v3