tokenbridge/deployment-e2e/molecule.sh

16 lines
400 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-07-14 17:53:05 +03:00
cd ./e2e-commons
set -e # exit when any command fails
2020-09-02 17:43:48 +03:00
if [ -z "$CI" ]; then
docker-compose build molecule_runner
else
docker-compose pull molecule_runner
fi
2020-07-14 17:53:05 +03:00
docker network create --driver bridge ultimate || true
while [ "$1" != "" ]; do
2020-07-14 17:53:05 +03:00
docker-compose run molecule_runner /bin/bash -c "molecule test --scenario-name $1"
shift # Shift all the parameters down by one
done