diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-24 23:32:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 23:32:57 +0800 |
commit | af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0 (patch) | |
tree | da933fedb93712fd6cac77d4fe470c0b737dcd25 | |
parent | afe0a5404f4012650e6bea1f2ac0696dc464e2d1 (diff) | |
parent | 0ca941942b78aaa4b9b71b0fccc41d2cfdb9551a (diff) | |
download | dexon-solidity-af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0.tar dexon-solidity-af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0.tar.gz dexon-solidity-af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0.tar.bz2 dexon-solidity-af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0.tar.lz dexon-solidity-af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0.tar.xz dexon-solidity-af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0.tar.zst dexon-solidity-af2d2499c1ccd431f5ac9455c2cbb63d3891f9b0.zip |
Merge pull request #2299 from ethereum/bytecodecompare
[WIP] Fixing Travis bytecodecompare
-rwxr-xr-x | scripts/bytecodecompare/storebytecode.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/bytecodecompare/storebytecode.sh b/scripts/bytecodecompare/storebytecode.sh index b3491cfa..653c86ba 100755 --- a/scripts/bytecodecompare/storebytecode.sh +++ b/scripts/bytecodecompare/storebytecode.sh @@ -87,17 +87,15 @@ EOF eval `ssh-agent -s` ssh-add deploy_key - COMMIT_DATE=$(cd "$REPO_ROOT" && git show -s --format="%cd" --date=short "$TRAVIS_COMMIT") - 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 - DIRECTORY=$COMMIT_DATE"_"$TRAVIS_COMMIT - mkdir -p "$DIRECTORY" - REPORT="$DIRECTORY/$ZIP_SUFFIX.txt" + DIRNAME=$(cd "$REPO_ROOT" && git show -s --format="%cd-H" --date=short) + mkdir -p "$DIRNAME" + REPORT="$DIRNAME/$ZIP_SUFFIX.txt" cp ../report.txt "$REPORT" # Only push if adding actually worked, i.e. there were changes. if git add "$REPORT" @@ -110,4 +108,4 @@ EOF fi fi ) -rm -rf "$TMPDIR"
\ No newline at end of file +rm -rf "$TMPDIR" |