tokenbridge/deployment/molecule/molecule.sh
Przemyslaw Rzad 82a3bdd86b
First step of ultimate e2e testing (#155)
* Ultimate e2e for native to erc type of bridge

* Initialize

* Node and yarn not needed anymore.
2019-07-17 10:14:58 +02:00

13 lines
450 B
Bash
Executable File

#!/usr/bin/env bash
cd $(dirname $0)
set -e # exit when any command fails
CODEBASE_BRANCH=${CIRCLE_BRANCH-$(git symbolic-ref --short HEAD)}
DOCKER_LOCALHOST=${DOCKER_LOCALHOST-localhost}
while [ "$1" != "" ]; do
docker-compose build && docker-compose run -e CODEBASE_BRANCH=$CODEBASE_BRANCH -e DOCKER_LOCALHOST=$DOCKER_LOCALHOST molecule_runner /bin/bash -c "molecule test --scenario-name $1"
shift # Shift all the parameters down by one
done