pre_plan:
- action: cargo_fetch
plan:
# Disabled because I'm too tired to fight different rustfmt versions.
# - action: cargo_fmt
#
- action: cargo_clippy
- action: shell
shell: |
export CARGO_TARGET_DIR=/ci/cache
export CARGO_HOME=/ci/deps
export HOME=/root
export PATH="/root/.cargo/bin:/root/.radicle/bin:$PATH"
# Check that `rad` is there.
rad --help >/dev/null || (echo rad is not there; exit 1)
cargo doc --workspace --no-deps
# FIXME: We can't run upgrade tests from older versions because
# Ambient only fetches dependencies for the current version.
# Thus, we can't build the old versions. This is an Ambient
# problem that we can't fix here. So we skip the upgrade tests.
export RAD_PASSPHRAE=secret
rad auth --alias ambient
env
cargo test --workspace --no-fail-fast -- --skip upgrade --test-threads 2
subplot docgen ci-broker.subplot -o doc/ci-broker.html
subplot docgen doc/userguide.subplot -o doc/userguide.html
make -C doc
cp doc/*.html /ci/artifacts/.
- action: custom
name: dch
args:
debemail: liw@liw.fi
debfullname: "Lars Wirzenius"
- action: deb
post_plan:
- action: dput
- action: rsync