- Nightly Rust of same version as defined in housekeeping/docker/develop/Dockerfile
rustup default set nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
Unless all the steps are executed, CI will fail the build
- Format the code
cargo fmt
- Fix all warnings
RUSTFLAGS="-Dwarnings" cargo check
- Execute tests
RUSTFLAGS="-Dwarnings" cargo test
make docker-build-image
or
docker build -t soraneo-develop-nix .
make cargo-build-release
or
cargo build --release
make cargo-test-release
or
cargo test --release
make docker-test-release
or
./scripts/docker_compose_up.sh --with-last-commit --run "cargo test --release"
make docker-build-release
or
./scripts/docker_compose_up.sh --with-last-commit --run "cargo build --release"
./target/release/parachain-collator \
--tmp --validator --alice --ws-port 9944 --port 30333 \
--parachain-id 200 -- --chain ./misc/rococo-custom.json
./target/release/parachain-collator \
--tmp --alice --ws-port 9944 --port 30333 \
--parachain-id 200 -- --chain ./misc/rococo-custom.json
make a397f7451d80205abf5e535ecee95073ad49e369
make a397f7451d80205abf5e535ecee95073ad49e369-debug
make docker-localtestnet
make docker-localtestnet-debug
docker build -f housekeeping/docker/develop/Dockerfile -t soraneo-develop .
docker run -ti -v $(pwd):/app -w /app --rm soraneo-develop cargo build --release