2019-07-08 09:15:17 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-07-14 21:53:05 +07:00
|
|
|
cd ./e2e-commons
|
2019-07-08 09:15:17 +02:00
|
|
|
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 21:53:05 +07:00
|
|
|
docker network create --driver bridge ultimate || true
|
2019-07-08 09:15:17 +02:00
|
|
|
while [ "$1" != "" ]; do
|
2020-07-14 21:53:05 +07:00
|
|
|
docker-compose run molecule_runner /bin/bash -c "molecule test --scenario-name $1"
|
2019-07-08 09:15:17 +02:00
|
|
|
|
|
|
|
shift # Shift all the parameters down by one
|
|
|
|
done
|