Skip to content

Commit 22a0c46

Browse files
authored
Merge pull request #12923 from super1ha1/circle-ci-merge_similar_jobs
[Circle CI] Parameterize b_bytecode_ubu and b_bytecode_osx build job
2 parents 44fcf35 + 66f4828 commit 22a0c46

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

.circleci/config.yml

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,27 @@ commands:
9292
event: release
9393
condition: on_success
9494

95+
prepare_bytecode_report:
96+
description: "Generate bytecode report and upload it as an artifact."
97+
parameters:
98+
label:
99+
type: string
100+
steps:
101+
- run: mkdir test-cases/
102+
- run: cd test-cases && ../scripts/isolate_tests.py ../test/
103+
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface standard-json --report-file "../bytecode-report-<< parameters.label >>-json.txt"
104+
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface cli --report-file "../bytecode-report-<< parameters.label >>-cli.txt"
105+
- store_artifacts:
106+
path: bytecode-report-<< parameters.label >>-json.txt
107+
- store_artifacts:
108+
path: bytecode-report-<< parameters.label >>-cli.txt
109+
- persist_to_workspace:
110+
root: .
111+
paths:
112+
- bytecode-report-<< parameters.label >>-json.txt
113+
- bytecode-report-<< parameters.label >>-cli.txt
114+
- gitter_notify_failure_unless_pr
115+
95116
defaults:
96117

97118
# --------------------------------------------------------------------------
@@ -1389,41 +1410,17 @@ jobs:
13891410
- checkout
13901411
- attach_workspace:
13911412
at: build
1392-
- run: mkdir test-cases/
1393-
- run: cd test-cases && ../scripts/isolate_tests.py ../test/
1394-
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface standard-json --report-file ../bytecode-report-ubuntu-json.txt
1395-
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface cli --report-file ../bytecode-report-ubuntu-cli.txt
1396-
- store_artifacts:
1397-
path: bytecode-report-ubuntu-json.txt
1398-
- store_artifacts:
1399-
path: bytecode-report-ubuntu-cli.txt
1400-
- persist_to_workspace:
1401-
root: .
1402-
paths:
1403-
- bytecode-report-ubuntu-json.txt
1404-
- bytecode-report-ubuntu-cli.txt
1405-
- gitter_notify_failure_unless_pr
1413+
- prepare_bytecode_report:
1414+
label: "ubuntu"
14061415

14071416
b_bytecode_osx:
14081417
<<: *base_osx
14091418
steps:
14101419
- checkout
14111420
- attach_workspace:
14121421
at: .
1413-
- run: mkdir test-cases/
1414-
- run: cd test-cases && ../scripts/isolate_tests.py ../test/
1415-
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface standard-json --report-file ../bytecode-report-osx-json.txt
1416-
- run: cd test-cases && ../scripts/bytecodecompare/prepare_report.py ../build/solc/solc --interface cli --report-file ../bytecode-report-osx-cli.txt
1417-
- store_artifacts:
1418-
path: bytecode-report-osx-json.txt
1419-
- store_artifacts:
1420-
path: bytecode-report-osx-cli.txt
1421-
- persist_to_workspace:
1422-
root: .
1423-
paths:
1424-
- bytecode-report-osx-json.txt
1425-
- bytecode-report-osx-cli.txt
1426-
- gitter_notify_failure_unless_pr
1422+
- prepare_bytecode_report:
1423+
label: "osx"
14271424

14281425
b_bytecode_win:
14291426
<<: *base_win_cmd

0 commit comments

Comments
 (0)