1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-25 06:07:43 +00:00
starship/integration_test
Hofer-Julian c67734f46c fix: Turn off label confinement for integration_test script (#322)
Allows usage on OS using SELinux.
No influence on other OS is expected.
2019-09-08 16:46:12 -05:00

17 lines
510 B
Bash
Executable File

#!/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 starshipcommand/starship-test \
--cache-from starshipcommand/starship-test \
.
printf 'Running test suite:\n'
docker run --rm -v $(pwd):/src/starship --security-opt="label=disable" starshipcommand/starship-test