Skip to content

Commit 2d1bff4

Browse files
authored
Merge pull request #733 from ethereum/disable-truffle
Remove truffle suite from CI
2 parents 1610d4e + 581b70e commit 2d1bff4

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
@@ -373,40 +342,6 @@ jobs:
373342
cd boilerplate/
374343
npm run test
375344
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-
410345
cli-smoke-test:
411346
docker:
412347
- image: cimg/node:current

0 commit comments

Comments
 (0)