starship/acceptance_test

17 lines
509 B
Plaintext
Raw Normal View History

2019-04-28 19:34:46 +02:00
#!/bin/bash
if ! (docker --version); then
printf 'Docker is required to run the starship acceptance tests.\n'
2019-04-28 19:34:46 +02:00
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 starshipcommand/starship-test \
--cache-from starshipcommand/starship-test \
.
2019-04-28 19:34:46 +02:00
printf 'Running test suite:\n'
docker run --rm -v $(pwd):/src/starship --security-opt="label=disable" starshipcommand/starship-test