Skip to content

Commit

Permalink
Add local CI info to README (paritytech#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam authored and serban300 committed Apr 9, 2024
1 parent b559174 commit 8ecbea1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bridges/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,25 @@ cargo build --all
cargo test --all
```

Also you can build the repo with
[Parity CI Docker image](https://github.com/paritytech/scripts/tree/master/dockerfiles/bridges-ci):

```bash
docker pull paritytech/bridges-ci:production
mkdir ~/cache
chown 1000:1000 ~/cache #processes in the container runs as "nonroot" user with UID 1000
docker run --rm -it -w /shellhere/parity-bridges-common \
-v /home/$(whoami)/cache/:/cache/ \
-v "$(pwd)":/shellhere/parity-bridges-common \
-e CARGO_HOME=/cache/cargo/ \
-e SCCACHE_DIR=/cache/sccache/ \
-e CARGO_TARGET_DIR=/cache/target/ paritytech/bridges-ci:production cargo build --all
#artifacts can be found in ~/cache/target
```

If you want to reproduce other steps of CI process you can use the following
[guide](https://github.com/paritytech/scripts#reproduce-ci-locally).

If you need more information about setting up your development environment Substrate's
[Getting Started](https://substrate.dev/docs/en/knowledgebase/getting-started/) page is a good
resource.
Expand Down

0 comments on commit 8ecbea1

Please sign in to comment.