mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Travis CI: Fix Emscripten build
This commit is contained in:
parent
dc8754b595
commit
622a2d8251
@ -29,28 +29,29 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
REPO_ROOT=$(cd $(dirname "$0")/.. && pwd)
|
REPO_ROOT=$(cd $(dirname "$0")/.. && pwd)
|
||||||
|
SOLJSON="$REPO_ROOT/build/solc/soljson.js"
|
||||||
|
|
||||||
cd $REPO_ROOT/build
|
DIR=$(mktemp -d)
|
||||||
|
(
|
||||||
|
echo "Preparing solc-js..."
|
||||||
|
git clone --depth 1 https://github.com/ethereum/solc-js "$DIR"
|
||||||
|
cd "$DIR"
|
||||||
|
npm install
|
||||||
|
|
||||||
echo "Preparing solc-js..."
|
# Replace soljson with current build
|
||||||
rm -rf solc-js
|
echo "Replacing soljson.js"
|
||||||
git clone https://github.com/ethereum/solc-js
|
rm -f soljson.js
|
||||||
cd solc-js
|
cp "$SOLJSON" soljson.js
|
||||||
npm install
|
|
||||||
|
|
||||||
# Replace soljson with current build
|
# Update version (needed for some tests)
|
||||||
echo "Replacing soljson.js"
|
VERSION=$("$REPO_ROOT/scripts/get_version.sh")
|
||||||
rm -f soljson.js
|
echo "Updating package.json to version $VERSION"
|
||||||
# Make a copy because paths might not be absolute
|
npm version --no-git-tag-version $VERSION
|
||||||
cp ../solc/soljson.js soljson.js
|
|
||||||
|
|
||||||
# Update version (needed for some tests)
|
echo "Running solc-js tests..."
|
||||||
VERSION=$(../../scripts/get_version.sh)
|
npm run test
|
||||||
echo "Updating package.json to version $VERSION"
|
)
|
||||||
npm version $VERSION
|
rm -rf "$DIR"
|
||||||
|
|
||||||
echo "Running solc-js tests..."
|
|
||||||
npm run test
|
|
||||||
|
|
||||||
echo "Running external tests...."
|
echo "Running external tests...."
|
||||||
"$REPO_ROOT"/test/externalTests.sh "$REPO_ROOT"/build/solc/soljson.js
|
"$REPO_ROOT/test/externalTests.sh" "$SOLJSON"
|
||||||
|
@ -38,10 +38,9 @@ SOLJSON="$1"
|
|||||||
|
|
||||||
DIR=$(mktemp -d)
|
DIR=$(mktemp -d)
|
||||||
(
|
(
|
||||||
cd "$DIR"
|
|
||||||
echo "Running Zeppelin tests..."
|
echo "Running Zeppelin tests..."
|
||||||
git clone https://github.com/OpenZeppelin/zeppelin-solidity.git
|
git clone --depth 1 https://github.com/OpenZeppelin/zeppelin-solidity.git "$DIR"
|
||||||
cd zeppelin-solidity
|
cd "$DIR"
|
||||||
npm install
|
npm install
|
||||||
cp "$SOLJSON" ./node_modules/solc/soljson.js
|
cp "$SOLJSON" ./node_modules/solc/soljson.js
|
||||||
npm run test
|
npm run test
|
||||||
|
Loading…
Reference in New Issue
Block a user