Skip to content

Commit 5636d58

Browse files
committed
CI: Add a smoke test for the CLI script
1 parent af92370 commit 5636d58

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ workflows:
1212
- hardhat-core-latest-solc
1313
- hardhat-sample-project
1414
- truffle-sample-project
15+
- cli-smoke-test
1516

1617
version: 2.1
1718

@@ -311,6 +312,35 @@ jobs:
311312
echo "module.exports['compilers'] = {solc: {version: '$(realpath node_modules/solc/)'}}" > truffle-config.js
312313
node ../truffle/node_modules/.bin/truffle test
313314
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+
314344
node-v10:
315345
<<: *node-base
316346
docker:

0 commit comments

Comments
 (0)