-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.x' into provider-related-improvements
- Loading branch information
Showing
8 changed files
with
138 additions
and
4 deletions.
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
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,48 @@ | ||
# ---------------------------------------------------------------------------------------- | ||
# Run trufflesuite/ganache-core using a candidate branch of web3 which has been published | ||
# to a proxy npm registry in `e2e.npm.publish.sh` | ||
# | ||
# This test's purpose is to watch web3 execute a long, complex test suite | ||
# ---------------------------------------------------------------------------------------- | ||
|
||
# Exit immediately on error | ||
set -o errexit | ||
|
||
# Install ganache-core | ||
git clone https://github.com/trufflesuite/ganache-core | ||
cd ganache-core | ||
|
||
# Install via registry and verify | ||
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" | ||
echo "Installing updated web3 via virtual registry " | ||
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" | ||
|
||
npm install | ||
npm uninstall --save-dev web3 | ||
npm install --save-dev web3@e2e --registry http://localhost:4873 | ||
|
||
npm list web3 | ||
npm list web3-utils | ||
npm list web3-core | ||
npm list web3-core-promievent | ||
|
||
cat ./package.json | ||
|
||
# Test | ||
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" | ||
echo "Running trufflesuite/ganache-core unit tests. " | ||
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" | ||
|
||
npm run build | ||
|
||
# NB: there's one failing ganache test, which checks | ||
# whether the object returned by the server is an | ||
# instanceof StateManager. Also fails locally & doesn't | ||
# seem web3 related. Skipping it with grep / invert. | ||
TEST_BUILD=node npx mocha \ | ||
--grep "instance of" \ | ||
--invert \ | ||
--check-leaks \ | ||
--recursive \ | ||
--globals _scratch \ | ||
--opts ./test/.mocharc |
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
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