mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2128 from ethereum/bytecodeNoPull
Run bytecode upload only if encrypted variables are available.
This commit is contained in:
commit
1927148604
@ -80,22 +80,25 @@ EOF
|
|||||||
$REPO_ROOT/scripts/bytecodecompare/prepare_report.py $REPO_ROOT/build/solc/solc
|
$REPO_ROOT/scripts/bytecodecompare/prepare_report.py $REPO_ROOT/build/solc/solc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
openssl aes-256-cbc -K $encrypted_60701c962b9c_key -iv $encrypted_60701c962b9c_iv -in "$REPO_ROOT"/scripts/bytecodecompare/deploy_key.enc -out deploy_key -d
|
if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]
|
||||||
chmod 600 deploy_key
|
then
|
||||||
eval `ssh-agent -s`
|
openssl aes-256-cbc -K $encrypted_60701c962b9c_key -iv $encrypted_60701c962b9c_iv -in "$REPO_ROOT"/scripts/bytecodecompare/deploy_key.enc -out deploy_key -d
|
||||||
ssh-add deploy_key
|
chmod 600 deploy_key
|
||||||
|
eval `ssh-agent -s`
|
||||||
|
ssh-add deploy_key
|
||||||
|
|
||||||
git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git
|
git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git
|
||||||
cd solidity-test-bytecode
|
cd solidity-test-bytecode
|
||||||
git config user.name "travis"
|
git config user.name "travis"
|
||||||
git config user.email "chris@ethereum.org"
|
git config user.email "chris@ethereum.org"
|
||||||
git clean -f -d -x
|
git clean -f -d -x
|
||||||
|
|
||||||
mkdir -p "$TRAVIS_COMMIT"
|
mkdir -p "$TRAVIS_COMMIT"
|
||||||
REPORT="$TRAVIS_COMMIT/$ZIP_SUFFIX.txt"
|
REPORT="$TRAVIS_COMMIT/$ZIP_SUFFIX.txt"
|
||||||
cp ../report.txt "$REPORT"
|
cp ../report.txt "$REPORT"
|
||||||
git add "$REPORT"
|
git add "$REPORT"
|
||||||
git commit -a -m "Added report $REPORT"
|
git commit -a -m "Added report $REPORT"
|
||||||
git push origin
|
git push origin
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
rm -rf "$TMPDIR"
|
rm -rf "$TMPDIR"
|
Loading…
Reference in New Issue
Block a user