Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
build: add .radicle/ambient.yaml to allow Radicle CI use Ambient
Merged liw opened 1 year ago

Signed-off-by: Lars Wirzenius liw@liw.fi

1 file changed +50 -0 c239dfb0 c5bcb6e9
added .radicle/ambient.yaml
@@ -0,0 +1,50 @@
+
pre_plan:
+
  - action: cargo_fetch
+
plan:
+
  - action: cargo_fmt
+
  - action: cargo_clippy
+

+
  # # Not using the built-on `cargo_test` action, as the test suite
+
  # # requires HOME to be set and Ambient doesn't yet have a way to do
+
  # # that. So we use the `shell` action instead, even if that is more
+
  # # tedious and requires setting up the relevant environment variables
+
  # # manually.
+
  # - action: shell
+
  #   shell: |
+
  #     export CARGO_TARGET_DIR=/workspace/cache
+
  #     export CARGO_HOME=/workspace/deps
+
  #     export HOME=/root
+
  #     export PATH="/root/.cargo/bin:$PATH"
+

+
  #     # Configure Git so that it can be used in the tests for this
+
  #     # project.
+
  #     git config --global user.email "test@example.com"
+
  #     git config --global user.name "Testy McTestface"
+

+
  #     cargo test
+

+
  - action: shell
+
    shell: |
+
      export DEBEMAIL=liw@liw.fi
+
      export DEBFULLNAME="Lars Wirzenius"
+
      export CARGO_TARGET_DIR=/workspace/cache
+

+
      # git reset --hard
+
      # git clean -fdx
+
      # git switch main
+
      git status --ignored
+
      # git clean -fdx
+

+
      cargo doc --workspace
+
      cargo test --workspace --no-fail-fast
+

+
      subplot docgen ci-broker.subplot -o doc/ci-broker.html
+
      subplot docgen doc/userguide.subplot -o doc/userguide.html
+
      make -C doc publish
+

+
      V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')"
+
      T="$(date -u "+%Y%m%dT%H%M%S")"
+
      version="$V.ci$T-1"
+
      dch -v "$version" "CI build under Ambient."
+
      dch -r ''
+
  - action: deb