File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ workflows:
12
12
- hardhat-core-latest-solc
13
13
- hardhat-sample-project
14
14
- truffle-sample-project
15
+ - cli-smoke-test
15
16
16
17
version : 2.1
17
18
@@ -311,6 +312,35 @@ jobs:
311
312
echo "module.exports['compilers'] = {solc: {version: '$(realpath node_modules/solc/)'}}" > truffle-config.js
312
313
node ../truffle/node_modules/.bin/truffle test
313
314
315
+ cli-smoke-test :
316
+ docker :
317
+ - image : circleci/node:17
318
+ steps :
319
+ - update-npm
320
+ - show-npm-version
321
+ - provision-and-package-solcjs
322
+ - run :
323
+ name : " CLI smoke test (repository)"
324
+ command : |
325
+ cd solc-js
326
+ dist/solc.js --version
327
+
328
+ echo "contract C {}" > C.sol
329
+ dist/solc.js C.sol --bin
330
+ [[ -f C_sol_C.bin ]]
331
+ - run :
332
+ name : " CLI smoke test (package)"
333
+ command : |
334
+ mkdir package/
335
+ cd package/
336
+ npm install ../solc-js.tgz
337
+
338
+ npx solcjs --version
339
+
340
+ echo "contract C {}" > C.sol
341
+ npx solcjs C.sol --bin
342
+ [[ -f C_sol_C.bin ]]
343
+
314
344
node-v10 :
315
345
<< : *node-base
316
346
docker :
You can’t perform that action at this time.
0 commit comments