2019-07-08 10:15:17 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
cd $(dirname $0)
|
|
|
|
set -e # exit when any command fails
|
|
|
|
|
|
|
|
CODEBASE_BRANCH=${CIRCLE_BRANCH-$(git symbolic-ref --short HEAD)}
|
|
|
|
|
|
|
|
while [ "$1" != "" ]; do
|
2019-07-26 11:14:25 +03:00
|
|
|
docker-compose build && docker-compose run -e CODEBASE_BRANCH=$CODEBASE_BRANCH molecule_runner /bin/bash -c "molecule test --scenario-name $1"
|
2019-07-08 10:15:17 +03:00
|
|
|
|
|
|
|
shift # Shift all the parameters down by one
|
|
|
|
done
|