@@ -20,7 +20,6 @@ workflows:
20
20
- hardhat-core-default-solc : *requires_package
21
21
- hardhat-core-latest-solc : *requires_package
22
22
- hardhat-sample-project : *requires_package
23
- - truffle-sample-project : *requires_package
24
23
- cli-smoke-test : *requires_package
25
24
- solidity-solcjs-ext-test
26
25
@@ -87,27 +86,6 @@ commands:
87
86
paths :
88
87
- " <<parameters.path>>/node_modules/"
89
88
90
- install-truffle-dependencies :
91
- steps :
92
- - run :
93
- name : Store current Truffle commit ID in a variable
94
- command : |
95
- cd truffle/
96
- echo "export _TRUFFLE_COMMIT_ID=$(git rev-parse --verify HEAD)" >> $BASH_ENV
97
- - restore_cache :
98
- name : " Restoring truffle cache"
99
- key : truffle-dependency-cache-{{ checksum "truffle/yarn.lock" }}-{{ .Environment._TRUFFLE_COMMIT_ID }}
100
- - run :
101
- name : yarn install in truffle
102
- command : |
103
- cd truffle/
104
- [[ -e node_modules/ ]] || yarn install
105
- - save_cache :
106
- name : " Saving truffle cache"
107
- key : truffle-dependency-cache-{{ checksum "truffle/yarn.lock" }}-{{ .Environment._TRUFFLE_COMMIT_ID }}
108
- paths :
109
- - truffle/
110
-
111
89
inject-solc-js-tarball :
112
90
description : " Recursively finds and replaces all instances of solc-js module installed in node_modules/ with the one from a tarball."
113
91
parameters :
@@ -171,15 +149,6 @@ commands:
171
149
path : hardhat/
172
150
package-manager : pnpm
173
151
174
- provision-truffle-with-packaged-solcjs :
175
- description : " Clones Truffle repository and configures it to use a local clone of solc-js."
176
- steps :
177
- - run : git clone --depth 1 "https://github.com/trufflesuite/truffle" truffle/
178
- - install-truffle-dependencies
179
- - inject-solc-js-tarball :
180
- path : truffle/
181
- package-manager : yarn
182
-
183
152
jobs :
184
153
node-base : &node-base
185
154
working_directory : ~/solc-js
@@ -367,40 +336,6 @@ jobs:
367
336
cd boilerplate/
368
337
npm run test
369
338
370
- truffle-sample-project :
371
- docker :
372
- - image : cimg/node:lts
373
- steps :
374
- - update-npm
375
- - show-npm-version
376
- - attach_workspace :
377
- at : workspace
378
- - run : sudo apt update
379
- - run : sudo apt install python3 python-is-python3 --assume-yes --no-install-recommends
380
- - provision-truffle-with-packaged-solcjs
381
- - run :
382
- name : Unbox MetaCoin
383
- command : |
384
- mkdir metacoin/
385
- cd metacoin/
386
- node ../truffle/node_modules/.bin/truffle unbox metacoin
387
- - run :
388
- name : Strip version pragmas
389
- command : sed -i 's|pragma solidity [^;]\+;|pragma solidity *;|g' $(find metacoin/{contracts,test}/ -name "*.sol")
390
- - run :
391
- name : Build and test the sample project with local Truffle and its default solc
392
- command : |
393
- cd metacoin/
394
- node ../truffle/node_modules/.bin/truffle test
395
- - run :
396
- name : Build and test the sample project with local Truffle and latest solc
397
- command : |
398
- cd metacoin/
399
- # `truffle test` compiles the project but artifacts go into /tmp/
400
- ! [[ -e build/ ]]
401
- echo "module.exports['compilers'] = {solc: {version: '$(realpath ../truffle/node_modules/solc/)'}}" >> truffle-config.js
402
- node ../truffle/node_modules/.bin/truffle test
403
-
404
339
cli-smoke-test :
405
340
docker :
406
341
- image : cimg/node:current
0 commit comments