This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* project -> truffle-project * facilitate running the same thing outside of docker and circleci * tweak options on standalone script. Should do on circleci as well
- Loading branch information
rocky
committed
Feb 25, 2019
1 parent
818d43c
commit 34b997b
Showing
9 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Source this to set up to run as a trial user | ||
unset MYTHX_API_KEY | ||
export MYTHX_ETH_ADDRESS='0x0000000000000000000000000000000000000000' | ||
MYTHX_API_URL=${MYTHX_API_URL:-'https://api.mythx.io'} | ||
export MYTHX_API_URL | ||
export MYTHX_PASSWORD='trial' | ||
echo Set up to use MythX as trial user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
# Run integration tests | ||
me=$(readlink -f $0) | ||
mydir=$(dirname $me) | ||
TIME_OUT=${TIME_OUT:-360} # 6 minutes | ||
|
||
run_test() { | ||
set -x | ||
truffle run verify --no-cache-lookup --debug=1 --timeout=$TIME_OUT | ||
rc=$? | ||
set +x | ||
# FIXME: rc is 0 even when there is a failure - checkout output | ||
return $rc | ||
} | ||
|
||
cd $mydir | ||
. ./mythx-prod-trial | ||
cd truffle-project | ||
|
||
typeset -i rc | ||
|
||
# If an account is set, try it | ||
if [[ -n $MYTHX_ETH_ADDRESS && -n $MYTHX_PASSWORD ]] ; then | ||
echo "Testing with $MYTH_ETH_ADDRESS..." | ||
run_test | ||
rc=$? | ||
if (($rc != 0)) ; then | ||
echo "Failed using with address $MYTH_ETH_ADDRESS" | ||
fi | ||
fi | ||
|
||
typeset -i rc2 | ||
echo "Testing as trial user..." | ||
run_test | ||
rc2=$? | ||
((rc=rc+rc2)) | ||
exit $rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This sample truffle project is used in integration testing. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.