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.

Closes #228
This commit is contained in:
Martin Pitt 2019-09-23 17:28:30 +02:00 committed by Sanne Raymaekers
parent 0d636daa47
commit 95b2aff0b8

View file

@ -133,12 +133,14 @@ vm: $(VM_IMAGE)
check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common
TEST_AUDIT_NO_SELINUX=1 test/check-application TEST_AUDIT_NO_SELINUX=1 test/check-application
# 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
# checkout Cockpit's test API; this has no API stability guarantee, so check out a stable tag # checkout Cockpit's test API; this has no API stability guarantee, so check out a stable tag
# when you start a new project, use the latest relese, and update it from time to time # when you start a new project, use the latest relese, and update it from time to time
@ -154,4 +156,4 @@ $(NODE_MODULES_TEST): package.json
env -u NODE_ENV npm install env -u NODE_ENV npm install
env -u NODE_ENV npm prune env -u NODE_ENV npm prune
.PHONY: all clean install devel-install dist-gzip srpm rpm check vm update-po .PHONY: all bots clean install devel-install dist-gzip srpm rpm check vm update-po