-
Notifications
You must be signed in to change notification settings - Fork 3
Testing a noisd build
Simon Warta edited this page Feb 26, 2024
·
1 revision
Those steps allow testing a noisd build together with the nois contracts.
Terminal 1
- Check out the relevant work and navigate to the noisd repo root
- Build a Docker image as described here. Take the image tag from the output, e.g.
1.0.5-29-ga6608d4
from here
=> [noisd 2/6] COPY --from=go-builder /code/build/noisd /usr/bin/noisd 0.1s
=> [noisd 3/6] RUN apk add jq 0.8s
=> [noisd 4/6] COPY docker/scripts/* /usr/local/bin/ 0.0s
=> [noisd 5/6] RUN chmod +x /usr/local/bin/*.sh 0.2s
=> [noisd 6/6] WORKDIR /opt 0.0s
=> exporting to image 0.2s
=> => exporting layers 0.2s
=> => writing image sha256:ab4342699c94eb5bc0e019ff0f96bda5d39e87598c08605fa2a78ee05b435d4f 0.0s
=> => naming to docker.io/noislabs/noisd:1.0.5-29-ga6608d4
Terminal 2
- Check out nois-contracts and navigate to the repo root
- Change
VERSION
inci-scripts/nois/env
to the tag from the other terminal - Regenerate genesis and check the diff:
(cd ci-scripts/nois && ./generate_template.sh)
- Start chains:
./ci-scripts/restart.sh
- Ensure two chains are running:
docker ps
(seedebug-noisd.log
in case of errors) - Builds contracts:
./devtools/build_integration_wasm.sh
- Run tests:
(cd tests && npm i && npm run test)