1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-18 11:05:19 +00:00
starship/integration_test

17 lines
479 B
Plaintext
Raw Normal View History

2019-04-28 17:34:46 +00:00
#!/bin/bash
if ! (docker --version); then
2019-04-28 17:34:46 +00:00
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 starshipcommand/starship-test \
--cache-from starshipcommand/starship-test \
.
2019-04-28 17:34:46 +00:00
printf 'Running test suite:\n'
docker run --rm -v $(pwd):/src/starship starshipcommand/starship-test