Skip to content

Commit

Permalink
Merge pull request #1312 from googlefonts/document-local-crater
Browse files Browse the repository at this point in the history
[crater] Document how to run CI locally
  • Loading branch information
cmyr authored Feb 28, 2025
2 parents 04a0ccb + 93c24c1 commit ae569a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fontc_crater/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ $ rm -f resources/scripts/requirements.txt && pip-compile resources/scripts/requ
# Commit updated file
```

To run locally to rebuild the HTML:

```shell
# clone git@github.com:googlefonts/fontc_crater.git somewhere, we'll assume at ../fontc_crater
# CI currently has it's own format for the repo list, use the file from ^
Expand All @@ -48,6 +50,18 @@ $ cargo run --release -p=fontc_crater -- ci ../fontc_crater/gf-repos-2024-09-23.
# Review ../fontc_crater/results/index.html (NOT ../fontc_crater/index.html)
```

To do a full run locally, such as to test a PR (assuming same fontc_crater
checkout as above):

```shell
# make sure the repo is up to date, so you're comparing against the latest run:
# cd ../fontc_crater && git pull

$ RUST_LOG=debug cargo run --release -p fontc_crater \
-- ci ../fontc_crater/gf-repos-2025-02-19.json --out ../fontc_crater/results/

```

[google-fonts-sources]: https://github.com/googlefonts/google-fonts-sources
[google/fonts]: https://github.com/google/fonts
[rust-lang/crater]: https://github.com/rust-lang/crater
Expand Down

0 comments on commit ae569a1

Please sign in to comment.