Add docker for integration tests (#26)

This commit is contained in:
Matan Kushner
2019-04-28 12:38:55 -04:00
committed by GitHub
parent 9a352c0acc
commit 67d938c3de
6 changed files with 123 additions and 18 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
if ! (docker --version); then
printf 'Docker is required to run the starship integration tests.\n'
printf 'Please download and install Docker in order to run these tests locally.\n'
exit 1
fi
printf 'Building test docker image:\n'
docker build -f tests/Dockerfile --tag starship-test .
printf 'Running test suite:\n'
docker run --rm -t -v $(pwd):/starship starship-test