diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-04-18 20:53:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 20:53:41 +0800 |
commit | 1927148604fb80cd0599d42698af7f9efb009d74 (patch) | |
tree | f640babb065c54d72bc2f1343e610f6522f20b53 /scripts | |
parent | 6ad7dcffce834288af69bfabbe10abd719e4c846 (diff) | |
parent | 4694eaec436b2ade74242fc3fc0d720996be2ae1 (diff) | |
download | dexon-solidity-1927148604fb80cd0599d42698af7f9efb009d74.tar.gz dexon-solidity-1927148604fb80cd0599d42698af7f9efb009d74.tar.zst dexon-solidity-1927148604fb80cd0599d42698af7f9efb009d74.zip |
Merge pull request #2128 from ethereum/bytecodeNoPull
Run bytecode upload only if encrypted variables are available.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bytecodecompare/storebytecode.sh | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/scripts/bytecodecompare/storebytecode.sh b/scripts/bytecodecompare/storebytecode.sh index cdf376a6..9a40bc6d 100755 --- a/scripts/bytecodecompare/storebytecode.sh +++ b/scripts/bytecodecompare/storebytecode.sh @@ -80,22 +80,25 @@ EOF $REPO_ROOT/scripts/bytecodecompare/prepare_report.py $REPO_ROOT/build/solc/solc 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 - chmod 600 deploy_key - eval `ssh-agent -s` - ssh-add deploy_key + if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ] + then + openssl aes-256-cbc -K $encrypted_60701c962b9c_key -iv $encrypted_60701c962b9c_iv -in "$REPO_ROOT"/scripts/bytecodecompare/deploy_key.enc -out deploy_key -d + chmod 600 deploy_key + eval `ssh-agent -s` + ssh-add deploy_key - git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git - cd solidity-test-bytecode - git config user.name "travis" - git config user.email "chris@ethereum.org" - git clean -f -d -x + git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git + cd solidity-test-bytecode + git config user.name "travis" + git config user.email "chris@ethereum.org" + git clean -f -d -x - mkdir -p "$TRAVIS_COMMIT" - REPORT="$TRAVIS_COMMIT/$ZIP_SUFFIX.txt" - cp ../report.txt "$REPORT" - git add "$REPORT" - git commit -a -m "Added report $REPORT" - git push origin + mkdir -p "$TRAVIS_COMMIT" + REPORT="$TRAVIS_COMMIT/$ZIP_SUFFIX.txt" + cp ../report.txt "$REPORT" + git add "$REPORT" + git commit -a -m "Added report $REPORT" + git push origin + fi ) rm -rf "$TMPDIR"
\ No newline at end of file |