-rem makefile.ci
This commit is contained in:
parent
8b9aae6f26
commit
7357bdd3a7
29
Makefile
29
Makefile
|
@ -30,32 +30,3 @@ stop:
|
||||||
@echo;
|
@echo;
|
||||||
@echo "> [3] post-stop script";
|
@echo "> [3] post-stop script";
|
||||||
@bash ./metactl/post-stop.sh && echo "< done" || (echo "< failed"; exit 1);
|
@bash ./metactl/post-stop.sh && echo "< done" || (echo "< failed"; exit 1);
|
||||||
|
|
||||||
|
|
||||||
ci:
|
|
||||||
@echo "*************************";
|
|
||||||
@echo "* *";
|
|
||||||
@echo "* Launching CI loop *";
|
|
||||||
@echo "* *";
|
|
||||||
@echo "*************************";
|
|
||||||
@echo;
|
|
||||||
@echo -n "*** Create trigger.............";
|
|
||||||
@test ! -d ./virtual/ci && mkdir ./virtual/ci; (exit 0);
|
|
||||||
@chmod 777 ./virtual/ci; (exit 0);
|
|
||||||
@touch ./virtual/ci/trigger; echo "done";
|
|
||||||
@chmod 777 ./virtual/ci/trigger; (exit 0);
|
|
||||||
@echo;
|
|
||||||
@echo "*** Launch environment.........launching";
|
|
||||||
@make start | sed 's/^\(.\)/\t\1/g' || (exit 1);
|
|
||||||
@echo;
|
|
||||||
@echo "*** Wait for trigger...........waiting";
|
|
||||||
@while [ -f ./virtual/ci/trigger ]; do sleep 1; done;
|
|
||||||
@echo;
|
|
||||||
@echo "*** Remove environment.........removing";
|
|
||||||
@make stop;
|
|
||||||
@echo;
|
|
||||||
@echo -n "*** Update source..............";
|
|
||||||
@git pull origin master > /dev/null 2>&1 && echo "updated" || echo "failed";
|
|
||||||
@echo;
|
|
||||||
@echo "*** Launch CI loop again";
|
|
||||||
@make ci;
|
|
||||||
|
|
Loading…
Reference in New Issue