1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 22:37:17 +00:00

Add support for running container separately in tfw.sh

This commit is contained in:
Kristóf Tóth 2018-05-04 11:00:22 +02:00
parent 0b8d084181
commit 950bd857a4

View File

@ -125,29 +125,34 @@ start_test()
{ {
trap 'exit' INT TERM trap 'exit' INT TERM
trap 'kill 0' EXIT trap 'kill 0' EXIT
run_frontend & build_and_run_test $@ [[ "${RUN_FRONTEND:-1}" == "1" ]] && run_frontend &
build_and_run_test $@
wait wait
} }
case ${1:-} in case ${1:-} in
start)
RUN_FRONTEND=1 start_test ${@:2}
;;
startcontainer)
RUN_FRONTEND=0 start_test ${@:2}
;;
buildtfw) buildtfw)
build_baseimage build_baseimage
;; ;;
releasetfw)
release_baseimage
;;
build) build)
build_test build_test
;; ;;
buildwithfrontend) buildwithfrontend)
build_test_withfrontend build_test_withfrontend
;; ;;
start) releasetfw)
start_test ${@:2} release_baseimage
;; ;;
*) *)
echo "Usage: tfw.sh [start|buildtfw|build|buildwithfrontend|releasetfw]" echo "Usage: tfw.sh [start|buildtfw|build|buildwithfrontend|releasetfw]"
echo " |--- start: build & start TFW test" echo " |--- start: build & start TFW test and Angular frontend"
echo " |--- startcontainer: build & start TFW test, container only"
echo " |--- buildtfw: build TFW baseimage" echo " |--- buildtfw: build TFW baseimage"
echo " |--- build: build TFW baseimage and test" echo " |--- build: build TFW baseimage and test"
echo " |--- buildwithfrontend: build TFW baseimage and test, include frontend in image" echo " |--- buildwithfrontend: build TFW baseimage and test, include frontend in image"