@@ -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
@@ -373,40 +342,6 @@ jobs:
373
342
cd boilerplate/
374
343
npm run test
375
344
376
- truffle-sample-project :
377
- docker :
378
- - image : cimg/node:lts
379
- steps :
380
- - update-npm
381
- - show-npm-version
382
- - attach_workspace :
383
- at : workspace
384
- - run : sudo apt update
385
- - run : sudo apt install python3 python-is-python3 --assume-yes --no-install-recommends
386
- - provision-truffle-with-packaged-solcjs
387
- - run :
388
- name : Unbox MetaCoin
389
- command : |
390
- mkdir metacoin/
391
- cd metacoin/
392
- node ../truffle/node_modules/.bin/truffle unbox metacoin
393
- - run :
394
- name : Strip version pragmas
395
- command : sed -i 's|pragma solidity [^;]\+;|pragma solidity *;|g' $(find metacoin/{contracts,test}/ -name "*.sol")
396
- - run :
397
- name : Build and test the sample project with local Truffle and its default solc
398
- command : |
399
- cd metacoin/
400
- node ../truffle/node_modules/.bin/truffle test
401
- - run :
402
- name : Build and test the sample project with local Truffle and latest solc
403
- command : |
404
- cd metacoin/
405
- # `truffle test` compiles the project but artifacts go into /tmp/
406
- ! [[ -e build/ ]]
407
- echo "module.exports['compilers'] = {solc: {version: '$(realpath ../truffle/node_modules/solc/)'}}" >> truffle-config.js
408
- node ../truffle/node_modules/.bin/truffle test
409
-
410
345
cli-smoke-test :
411
346
docker :
412
347
- image : cimg/node:current
0 commit comments