Files
oracle/ci/coverage.sh
Kendrick TanandGitHub 8c0e3b47a4 feat: automate etherscan verification (#1918)
* etherscan verification example

* fixed data structures

Signed-off-by: Kendrick Tan <[email protected]>

* partial etherscan verification

Signed-off-by: Kendrick Tan <[email protected]>

* checks

Signed-off-by: Kendrick Tan <[email protected]>

* coverage to truffle

* truffle...

* auto get network api url

* revert contracts

Signed-off-by: Kendrick Tan <[email protected]>
2020-09-03 08:52:51 -04:00

18 lines
662 B
Bash
Executable File

#!/bin/sh
set -e
# The truffle directory is passed in as the first argument.
TRUFFLE_DIR=$1
PROTOCOL_DIR=$(pwd)
# $1 is the truffle directory over which we want to run the coverage tool.
cd $TRUFFLE_DIR
# Truffle compile can take a lot of memory, which I've experienced with the solc-0.6 compatible versions,
# so I explicitly increase the javascript heap size.
# More details here: https://github.com/trufflesuite/truffle/issues/957
# Truffle compile for DecodeTransactionData
node --max-old-space-size=4096 $(npm bin)/truffle compile
node --max-old-space-size=4096 $(npm bin)/truffle run coverage && cat coverage/lcov.info | $(npm bin)/coveralls --verbose