@@ -92,6 +92,27 @@ commands:
92
92
event : release
93
93
condition : on_success
94
94
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
+
95
116
defaults :
96
117
97
118
# --------------------------------------------------------------------------
@@ -1389,41 +1410,17 @@ jobs:
1389
1410
- checkout
1390
1411
- attach_workspace :
1391
1412
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"
1406
1415
1407
1416
b_bytecode_osx :
1408
1417
<< : *base_osx
1409
1418
steps :
1410
1419
- checkout
1411
1420
- attach_workspace :
1412
1421
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"
1427
1424
1428
1425
b_bytecode_win :
1429
1426
<< : *base_win_cmd
0 commit comments