2018-05-25 03:17:26 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-07-09 18:39:31 +02:00
|
|
|
set -x
|
2018-05-25 03:17:26 +02:00
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
export PATH="$PATH:./node_modules/.bin"
|
2019-07-09 18:39:31 +02:00
|
|
|
export GANACHE_ARGS='--quiet --blockTime 2'
|
2018-05-25 03:17:26 +02:00
|
|
|
|
2019-07-09 18:39:31 +02:00
|
|
|
concurrently --kill-others \
|
|
|
|
--names 'ganache,dapp,e2e' \
|
|
|
|
--prefix '[{time}][{name}]' \
|
|
|
|
--success first \
|
|
|
|
'npm run ganache:start' \
|
|
|
|
'npm run dapp' \
|
|
|
|
'sleep 5 && mocha test/e2e/metamask-ui.spec'
|
|
|
|
|
|
|
|
concurrently --kill-others \
|
|
|
|
--names 'ganache,dapp,e2e' \
|
|
|
|
--prefix '[{time}][{name}]' \
|
|
|
|
--success first \
|
|
|
|
'npm run ganache:start' \
|
|
|
|
'npm run dapp' \
|
|
|
|
'sleep 5 && mocha test/e2e/metamask-responsive-ui.spec'
|
|
|
|
|
|
|
|
export GANACHE_ARGS="$GANACHE_ARGS --deterministic --account=0x53CB0AB5226EEBF4D872113D98332C1555DC304443BEE1CF759D15798D3C55A9,25000000000000000000"
|
|
|
|
concurrently --kill-others \
|
|
|
|
--names 'ganache,e2e' \
|
|
|
|
--prefix '[{time}][{name}]' \
|
|
|
|
--success first \
|
|
|
|
'npm run ganache:start' \
|
|
|
|
'sleep 5 && mocha test/e2e/from-import-ui.spec'
|