update hacking instructions

This commit is contained in:
Earl Warren 2024-01-18 17:44:12 +00:00
parent 6e3976b17c
commit 4879daf24a
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -28,7 +28,7 @@ export PATH=$(pwd)/setup-forgejo:$PATH
git clone https://code.forgejo.org/forgejo/end-to-end git clone https://code.forgejo.org/forgejo/end-to-end
cd end-to-end cd end-to-end
export DIR=/tmp/end-to-end export DIR=/tmp/end-to-end
sudo rm -fr /srv/example ; sudo mkdir /srv/example ; sudo chown -R $USER /srv/example rm -fr /tmp/end-to-end ; sudo rm -fr /srv/example ; sudo mkdir /srv/example ; sudo chown -R $USER /srv/example
``` ```
Run one example Run one example
@ -37,7 +37,7 @@ Run one example
actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1.22.0-test v1_22 cron # runs actions/example-cron actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1.22.0-test v1_22 cron # runs actions/example-cron
``` ```
Cleanup Cleanup. It will teardown Forgejo & the runner and not run them because there is nothing to test.
```sh ```sh
actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1.22.0-test v1_22 none actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1.22.0-test v1_22 none
@ -49,6 +49,13 @@ Run all examples for v1_22
actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1.22.0-test v1_22 actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1.22.0-test v1_22
``` ```
Run from sources
```sh
make TAGS='bindata sqlite sqlite_unlock_notify' generate forgejo
cp -a forgejo $DIR/forgejo
```
### Remote testing ### Remote testing
To reduce the runtime the following variables can be set to control To reduce the runtime the following variables can be set to control