forked from Skydipper/control-tower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrolTower.sh
More file actions
executable file
·27 lines (25 loc) · 845 Bytes
/
controlTower.sh
File metadata and controls
executable file
·27 lines (25 loc) · 845 Bytes
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
#!/bin/bash
case "$1" in
test-e2e)
npm run test-e2e
;;
test-unit)
npm run test-unit
;;
start)
npm start
;;
develop)
type docker-compose >/dev/null 2>&1 || { echo >&2 "docker-compose is required but it's not installed. Aborting."; exit 1; }
docker-compose -f docker-compose-develop.yml build && docker-compose -f docker-compose-develop.yml up
;;
test)
type docker-compose >/dev/null 2>&1 || { echo >&2 "docker-compose is required but it's not installed. Aborting."; exit 1; }
docker-compose -f docker-compose-test.yml build && docker-compose -f docker-compose-test.yml up --abort-on-container-exit
;;
*)
echo "Usage: controlTower.sh {test-e2e|test-unit|start|develop|test}" >&2
exit 1
;;
esac
exit 0