Makefile: Update bots target for moved GitHub project
Cockpit bots are in their own project now. Make the target phony so that `make bots` updates an existing checkout.
This commit is contained in:
parent
6f01aedc8a
commit
4643afa58d
14
Makefile
14
Makefile
@ -170,15 +170,17 @@ vm: $(VM_IMAGE)
|
|||||||
vm-reset:
|
vm-reset:
|
||||||
rm -f $(VM_IMAGE) $(VM_IMAGE).qcow2
|
rm -f $(VM_IMAGE) $(VM_IMAGE).qcow2
|
||||||
|
|
||||||
# checkout Cockpit's bots/ directory for standard test VM images and API to launch them
|
# checkout Cockpit's bots for standard test VM images and API to launch them
|
||||||
# must be from cockpit's master, as only that has current and existing images; but testvm.py API is stable
|
# must be from master, as only that has current and existing images; but testvm.py API is stable
|
||||||
bots:
|
bots:
|
||||||
git fetch --depth=1 https://github.com/cockpit-project/cockpit.git
|
if [ ! -d bots ]; then \
|
||||||
git checkout --force FETCH_HEAD -- bots/
|
git clone --depth=1 https://github.com/cockpit-project/bots.git; \
|
||||||
git reset bots
|
else \
|
||||||
|
cd bots && git fetch && git reset --hard origin/master; \
|
||||||
|
fi
|
||||||
|
|
||||||
.PHONY: ci_after_success
|
.PHONY: ci_after_success
|
||||||
ci_after_success:
|
ci_after_success:
|
||||||
# nothing to do here, but Jenkins expects this to be present, otherwise fails
|
# nothing to do here, but Jenkins expects this to be present, otherwise fails
|
||||||
|
|
||||||
.PHONY: docs check test srpm vm vm-reset
|
.PHONY: docs check test srpm vm vm-reset bots
|
||||||
|
Loading…
Reference in New Issue
Block a user