summaryrefslogtreecommitdiffstats
path: root/integration_test
blob: 93a6466df35675aba92cc4134f73196e3ebe1707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 starshipcommand/starship-test