Skip to content

Commit

Permalink
Update CircleCI to use official Web3J release
Browse files Browse the repository at this point in the history
  • Loading branch information
ermyas committed Nov 21, 2021
1 parent 72af8d1 commit f045e77
Showing 1 changed file with 2 additions and 48 deletions.
50 changes: 2 additions & 48 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ commands:
prepare:
steps:
- checkout
- run:
name: Check out Web3j
command: |
git clone https://github.com/drinkcoffee/web3j-abi.git ../web3j-abi
git --git-dir=../web3j-abi/.git rev-parse HEAD > ../web3j-abi/headcommit
- restore_cache:
name: Restore cached Web3j gradle dependencies
keys:
- deps-web3j-{{ checksum "../web3j-abi/build.gradle" }}
- deps-web3j
- restore_cache:
name: Restore cached GPACT gradle dependencies
keys:
Expand All @@ -21,8 +11,7 @@ commands:
- restore_cache:
name: Restore gradle build cache
keys: # by decreasing rate of change...
- build-cache-{{ checksum "../web3j-abi/headcommit" }}-{{ .Revision }}
- build-cache-{{ checksum "../web3j-abi/headcommit" }}
- build-cache-{{ .Revision }}
- build-cache
- run:
name: Install Solidity
Expand Down Expand Up @@ -66,41 +55,19 @@ jobs:
- run:
name: Assemble
command: |
pushd .
# Build our Web3j
cd ../web3j-abi
./gradlew --parallel --stacktrace --info --build-cache installDist
popd
# Build the gpact
./gradlew --parallel --stacktrace --info --build-cache clean compileJava compileTestJava assemble
- save_cache:
name: Caching Web3j gradle dependencies
key: deps-web3j-{{ checksum "../web3j-abi/build.gradle" }}
paths:
- ../web3j/.gradle
- save_cache:
name: Caching GPACT gradle dependencies
key: deps-gpact-{{ checksum "build.gradle" }}
paths:
- .gradle
- save_cache:
name: Caching gradle build cache
key: build-cache-{{ checksum "../besu/headcommit" }}-{{ checksum "../web3j-abi/headcommit" }}-{{ .Revision }}
key: build-cache-{{ checksum "../besu/headcommit" }}-{{ .Revision }}
paths:
- ~/.gradle

# - persist_to_workspace:
# root: ~/
# paths:
# - ./gpact
# - ./web3j-abi
# - ./besu/build/install
# - store_artifacts:
# name: Distribution artifacts
# path: build/distributions
# destination: distributions
# when: always

# This job does not work as the remote docker runs out of memory when trying to run
# the Besu container.
unitTestsDocker:
Expand All @@ -109,12 +76,6 @@ jobs:
working_directory: ~/gpact
steps:
- prepare
- run:
name: Build web3j
command: |
# Build our Web3j
cd ../web3j-abi
./gradlew --parallel --stacktrace --info --build-cache installDist
- setup_remote_docker:
version: 20.10.6
docker_layer_caching: true
Expand Down Expand Up @@ -189,14 +150,7 @@ jobs:
steps:
# The home directory is: /home/circleci/project
# gpact is cloned to: /home/circleci/project/.
# web3j is cloned to: /home/circleci/web3j-abi
- prepare
- run:
name: Build web3j
command: |
# Build our Web3j
cd ../web3j-abi
./gradlew --parallel --stacktrace --info --build-cache installDist
- run:
name: Check code formatting
command: ./gradlew solCheckFormat spotlessCheck
Expand Down

0 comments on commit f045e77

Please sign in to comment.