tokenbridge/ui-e2e/run-tests.sh
2019-05-21 12:44:01 +02:00

33 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
cd $(dirname $0)
docker-compose up -d --build --force-recreate
node ./scripts/blocks.js &
docker-compose run contracts ./deploy.sh
docker-compose run -d bridge npm run watcher:signature-request
docker-compose run -d bridge npm run watcher:collected-signatures
docker-compose run -d bridge npm run watcher:affirmation-request
docker-compose run -d bridge-erc20 npm run watcher:signature-request
docker-compose run -d bridge-erc20 npm run watcher:collected-signatures
docker-compose run -d bridge-erc20 npm run watcher:affirmation-request
docker-compose run -d bridge-erc20-native npm run watcher:signature-request
docker-compose run -d bridge-erc20-native npm run watcher:collected-signatures
docker-compose run -d bridge-erc20-native npm run watcher:affirmation-request
docker-compose run -d bridge npm run sender:home
docker-compose run -d bridge npm run 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
exit $rc