-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathquick_deploy.sh
More file actions
executable file
·52 lines (33 loc) · 865 Bytes
/
quick_deploy.sh
File metadata and controls
executable file
·52 lines (33 loc) · 865 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -e
SERVICE=Workspace
DEV_CONTAINER=/disks/p3/dev_container
AUTO_DEPLOY_CFG=auto-deploy.cfg
pushd $DEV_CONTAINER
. user-env.sh
pushd modules/$SERVICE
make
popd
perl auto-deploy $AUTO_DEPLOY_CFG -module $SERVICE
set +e
echo "stopping service"
/disks/p3/deployment/services/$SERVICE/stop_service
set -e
sleep 5
echo "starting service"
/disks/p3/deployment/services/$SERVICE/start_service
sleep 5
pushd modules/$SERVICE
# running tests. this section is still under development.
#echo "deleting mongo database"
#mongo WorkspaceBuild --eval "db.dropDatabase()"
#echo "deleting db-path"
#if [ -d /disks/p3/workspace/P3WSDB ] ; then
# rm -r /disks/p3/workspace/P3WSDB/
#fi
source /disks/p3/deployment/user-env.sh
perl t/client-tests/tests.t
if [ $? -ne 0 ] ; then
echo "BUILD ERROR: problem running make test"
exit 1
fi