mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12923 from super1ha1/circle-ci-merge_similar_jobs
[Circle CI] Parameterize b_bytecode_ubu and b_bytecode_osx build job
This commit is contained in:
commit
22a0c46eae
@ -92,6 +92,27 @@ commands:
|
|||||||
event: release
|
event: release
|
||||||
condition: on_success
|
condition: on_success
|
||||||
|
|
||||||
|
prepare_bytecode_report:
|
||||||
|
description: "Generate bytecode report and upload it as an artifact."
|
||||||
|
parameters:
|
||||||
|
label:
|
||||||
|
type: string
|
||||||
|
steps:
|
||||||
|
- run: mkdir test-cases/
|
||||||
|
- run: cd test-cases && ../scripts/isolate_tests.py ../test/
|
||||||
|
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface standard-json --report-file "../bytecode-report-<< parameters.label >>-json.txt"
|
||||||
|
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface cli --report-file "../bytecode-report-<< parameters.label >>-cli.txt"
|
||||||
|
- store_artifacts:
|
||||||
|
path: bytecode-report-<< parameters.label >>-json.txt
|
||||||
|
- store_artifacts:
|
||||||
|
path: bytecode-report-<< parameters.label >>-cli.txt
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: .
|
||||||
|
paths:
|
||||||
|
- bytecode-report-<< parameters.label >>-json.txt
|
||||||
|
- bytecode-report-<< parameters.label >>-cli.txt
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
@ -1389,20 +1410,8 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: build
|
at: build
|
||||||
- run: mkdir test-cases/
|
- prepare_bytecode_report:
|
||||||
- run: cd test-cases && ../scripts/isolate_tests.py ../test/
|
label: "ubuntu"
|
||||||
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface standard-json --report-file ../bytecode-report-ubuntu-json.txt
|
|
||||||
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface cli --report-file ../bytecode-report-ubuntu-cli.txt
|
|
||||||
- store_artifacts:
|
|
||||||
path: bytecode-report-ubuntu-json.txt
|
|
||||||
- store_artifacts:
|
|
||||||
path: bytecode-report-ubuntu-cli.txt
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: .
|
|
||||||
paths:
|
|
||||||
- bytecode-report-ubuntu-json.txt
|
|
||||||
- bytecode-report-ubuntu-cli.txt
|
|
||||||
- gitter_notify_failure_unless_pr
|
|
||||||
|
|
||||||
b_bytecode_osx:
|
b_bytecode_osx:
|
||||||
<<: *base_osx
|
<<: *base_osx
|
||||||
@ -1410,20 +1419,8 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
- run: mkdir test-cases/
|
- prepare_bytecode_report:
|
||||||
- run: cd test-cases && ../scripts/isolate_tests.py ../test/
|
label: "osx"
|
||||||
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface standard-json --report-file ../bytecode-report-osx-json.txt
|
|
||||||
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface cli --report-file ../bytecode-report-osx-cli.txt
|
|
||||||
- store_artifacts:
|
|
||||||
path: bytecode-report-osx-json.txt
|
|
||||||
- store_artifacts:
|
|
||||||
path: bytecode-report-osx-cli.txt
|
|
||||||
- persist_to_workspace:
|
|
||||||
root: .
|
|
||||||
paths:
|
|
||||||
- bytecode-report-osx-json.txt
|
|
||||||
- bytecode-report-osx-cli.txt
|
|
||||||
- gitter_notify_failure_unless_pr
|
|
||||||
|
|
||||||
b_bytecode_win:
|
b_bytecode_win:
|
||||||
<<: *base_win_cmd
|
<<: *base_win_cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user