Skip to content

Commit

Permalink
Merge branch 'development-1.5.0' into singleTradeVolumeRestriction
Browse files Browse the repository at this point in the history
  • Loading branch information
subramanianv authored Sep 28, 2018
2 parents b14c3ed + 2841e8a commit b6f8753
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
norpc: true,
port: 8545,
copyPackages: ['openzeppelin-solidity'],
testCommand: 'node ../node_modules/.bin/truffle test `find test/*.js ! -name a_poly_oracle.js` --network coverage',
testCommand: 'node ../node_modules/.bin/truffle test `find test/*.js ! -name a_poly_oracle.js -and ! -name s_v130_to_v140_upgrade.js` --network coverage',
deepSkip: true,
skipFiles: ['external', 'flat']
};
31 changes: 21 additions & 10 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,25 @@ start_testrpc() {

if testrpc_running; then
echo "Using existing testrpc instance"
bridge_running
if bridge_running; then
echo "Using existing ethereum-bridge instance"
else
echo "Runnning the new ethereum-bridge instance"
start_bridge
# Do not start ethereum bridge unless it is a cron job from travis
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
bridge_running
if bridge_running; then
echo "Using existing ethereum-bridge instance"
else
echo "Runnning the new ethereum-bridge instance"
start_bridge
fi
fi
else
echo "Starting our own testrpc instance"
start_testrpc
echo "Starting our own ethereum-bridge instance"
sleep 10
start_bridge
# Do not start ethereum bridge unless it is a cron job from travis
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
echo "Starting our own ethereum-bridge instance"
sleep 10
start_bridge
fi
fi

if ! [ -z "${TRAVIS_PULL_REQUEST+x}" ] && [ "$TRAVIS_PULL_REQUEST" != false ]; then
Expand All @@ -94,5 +100,10 @@ if ! [ -z "${TRAVIS_PULL_REQUEST+x}" ] && [ "$TRAVIS_PULL_REQUEST" != false ]; t
cat coverage/lcov.info | node_modules/.bin/coveralls
fi
else
node_modules/.bin/truffle test `ls test/*.js`
# Do not run a_poly_oracle,js tests unless it is a cron job from travis
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
node_modules/.bin/truffle test `ls test/*.js`
else
node_modules/.bin/truffle test `find test/*.js ! -name a_poly_oracle.js -and ! -name s_v130_to_v140_upgrade.js`
fi
fi

0 comments on commit b6f8753

Please sign in to comment.