-
Notifications
You must be signed in to change notification settings - Fork 4
/
it.sh
executable file
·41 lines (33 loc) · 928 Bytes
/
it.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
#!/usr/bin/env bash
docker --version
docker-compose --version
function check() {
if [[ $1 -ne 0 ]] ; then
exit 1
fi
}
function gungnir-docker {
GUNGNIR_VERSION="$(make version -s)"
make docker
check $?
}
function deploy {
echo "Deploying Cluster"
git clone https://github.com/xmidt-org/codex-deploy.git 2> /dev/null || true
pushd codex-deploy/deploy/docker-compose
GUNGNIR_VERSION=$GUNGNIR_VERSION docker-compose up -d yb-master yb-tserver gungnir
check $?
sleep 5
docker exec -it yb-tserver-n1 /home/yugabyte/bin/cqlsh yb-tserver-n1 -f /create_db.cql
check $?
popd
printf "\n"
}
gungnir-docker
cd ..
echo "Gungnir V:$GUNGNIR_VERSION"
deploy
go get -d github.com/xmidt-org/codex-deploy/tests/...
printf "Starting Tests \n\n\n"
go run github.com/xmidt-org/codex-deploy/tests/runners/travis -feature=codex-deploy/tests/features/gungnir/travis
check $?