#!/usr/bin/env bash if [[ $* == *--update-image* ]] then docker build -t procop-test -f ./docker-test-image/Dockerfile . else echo "Run with '--update-image' if you wan't to update the test Docker image." fi function test { echo -e "\n\nTest $1" docker run --rm -v "$HOME/.cargo/registry:/usr/local/cargo/registry" -v "$PWD:/usr/src/app" procop-test --lib -- --ignored $1 } ## Run each test in a separate container: test git::tests::get_repository