Common ui-e2e

This commit is contained in:
rzadp 2019-06-03 10:11:00 +02:00
parent 2159fc1a57
commit 505aa3f261
3 changed files with 16 additions and 24 deletions

@ -24,6 +24,18 @@ while [ "$1" != "" ]; do
if [ "$1" == "ui" ]; then
docker-compose up -d ui ui-erc20 ui-erc20-native
docker-compose run -d -p 3000:3000 ui yarn workspace ui run start
docker-compose run -d -p 3001:3000 ui-erc20 yarn workspace ui run start
docker-compose run -d -p 3002:3000 ui-erc20-native yarn workspace ui run start
fi
if [ "$1" == "oracle-deploy" ]; then
docker-compose run e2e yarn workspace oracle-e2e run deploy
fi
if [ "$1" == "ui-deploy" ]; then
docker-compose run e2e yarn workspace ui-e2e run deploy
fi
shift # Shift all the parameters down by one

@ -1,8 +1,6 @@
cd $(dirname $0)
../e2e-commons/up.sh oracle
docker-compose -f ../e2e-commons/docker-compose.yml run e2e yarn workspace oracle-e2e run deploy
../e2e-commons/up.sh oracle oracle-deploy
docker-compose -f ../e2e-commons/docker-compose.yml run e2e yarn workspace oracle-e2e run start
rc=$?

@ -1,30 +1,12 @@
#!/usr/bin/env bash
cd $(dirname $0)
docker-compose down
docker-compose up -d --build --force-recreate
../e2e-commons/up.sh oracle ui ui-deploy
node ./scripts/blocks.js &
docker-compose run e2e yarn workspace ui-e2e run deploy
docker-compose run -d bridge yarn watcher:signature-request
docker-compose run -d bridge yarn watcher:collected-signatures
docker-compose run -d bridge yarn watcher:affirmation-request
docker-compose run -d bridge-erc20 yarn watcher:signature-request
docker-compose run -d bridge-erc20 yarn watcher:collected-signatures
docker-compose run -d bridge-erc20 yarn watcher:affirmation-request
docker-compose run -d bridge-erc20-native yarn watcher:signature-request
docker-compose run -d bridge-erc20-native yarn watcher:collected-signatures
docker-compose run -d bridge-erc20-native yarn watcher:affirmation-request
docker-compose run -d bridge yarn sender:home
docker-compose run -d bridge yarn sender:foreign
docker-compose run -d -p 3000:3000 ui yarn workspace ui run start
docker-compose run -d -p 3001:3000 ui-erc20 yarn workspace ui run start
docker-compose run -d -p 3002:3000 ui-erc20-native yarn workspace ui run start
yarn mocha -b ./test.js
rc=$?
if [ $CI ]; then exit $rc; fi
ps | grep node | grep -v grep | awk '{print "kill " $1}' | sh
docker-compose down
../e2e-commons/down.sh
exit $rc