Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (10 sloc) 475 Bytes
echo "Docker-compose up"
docker-compose up -d
echo "Sleeping for 10 seconds"
sleep 10
echo "Running tests"
mocha
echo "Removing docker containers and images"
for i in `docker ps -a | grep soul-compose | awk '{print $1}'`; do docker rm -f $(docker stop $i) || true; done
for i in `docker ps -a | grep mongo | awk '{print $1}'`; do docker rm -f $(docker stop $i) || true; done
for i in `docker images| grep soul-compose | awk '{print $3}'`; do docker rmi -f $i || true; done