Skip to content

Commit 581b70e

Browse files
committed
Remove truffle from CI
1 parent 6c2d135 commit 581b70e

File tree

1 file changed

+0
-65
lines changed

1 file changed

+0
-65
lines changed

.circleci/config.yml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ workflows:
2020
- hardhat-core-default-solc: *requires_package
2121
- hardhat-core-latest-solc: *requires_package
2222
- hardhat-sample-project: *requires_package
23-
- truffle-sample-project: *requires_package
2423
- cli-smoke-test: *requires_package
2524
- solidity-solcjs-ext-test
2625

@@ -87,27 +86,6 @@ commands:
8786
paths:
8887
- "<<parameters.path>>/node_modules/"
8988

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-
11189
inject-solc-js-tarball:
11290
description: "Recursively finds and replaces all instances of solc-js module installed in node_modules/ with the one from a tarball."
11391
parameters:
@@ -171,15 +149,6 @@ commands:
171149
path: hardhat/
172150
package-manager: pnpm
173151

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-
183152
jobs:
184153
node-base: &node-base
185154
working_directory: ~/solc-js
@@ -367,40 +336,6 @@ jobs:
367336
cd boilerplate/
368337
npm run test
369338
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-
404339
cli-smoke-test:
405340
docker:
406341
- image: cimg/node:current

0 commit comments

Comments
 (0)