Added bitbucket test server for acceptance tests

This commit is contained in:
Gavin Bunney
2019-10-08 11:04:48 -07:00
parent 41e12c34fc
commit 9df96ee189
3 changed files with 37 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -e
echo "--> Downloading docker-compose"
curl -L https://github.com/docker/compose/releases/download/1.20.1/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
echo "--> Starting docker-compose"
docker-compose up -d
echo "--> Wait for bitbucket to be ready"
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:7990/status)" != "200" ]]; do sleep 5; done'