-
Notifications
You must be signed in to change notification settings - Fork 1
/
ci.sh
executable file
·45 lines (30 loc) · 1.05 KB
/
ci.sh
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
#!/usr/bin/env bash
set -ev
# run tests
GRADLE="./gradlew ${GRADLE_OPTS}"
${GRADLE} clean
${GRADLE} check
#install the client locally
${GRADLE} installDist
${GRADLE} integrationTest
# run the server
VAMPIRES_HOME=server/build/install/server
export VAMPIRES_CLIENT="client/build/install/client/scripts/vampires.sh 127.0.0.1"
${VAMPIRES_HOME}/scripts/vampires_server.sh conf/local.conf local&
sleep 15
exec_id=$(./server/scripts/all.sh |grep execution | awk ' {print $2}')
./server/scripts/monitorExec.sh ${exec_id}
job_status=$(./server/scripts/getStatus.sh ${exec_id})
jps | grep Server | awk '{print $1}' | xargs kill
echo "http://cosu.github.io/vampires-akka/server/tests/test/"
echo "http://cosu.github.io/vampires-akka/client/tests/test/"
echo "http://cosu.github.io/vampires-akka/server/tests/integrationTest/"
echo "http://cosu.github.io/vampires-akka/server/jacoco/test/html/"
echo "http://cosu.github.io/vampires-akka/client/jacoco/test/html/"
if [[ ${job_status} == "finished" ]]; then
echo "Success!"
exit 0
else
echo "Failed!"
exit 1
fi