Run bytecode upload only if encrypted variables are available.

This commit is contained in:
chriseth 2017-04-18 12:32:38 +02:00
parent bd48f181b5
commit 4694eaec43

View File

@ -80,6 +80,8 @@ 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
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 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 chmod 600 deploy_key
eval `ssh-agent -s` eval `ssh-agent -s`
@ -97,5 +99,6 @@ EOF
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"