Compare commits

...

1 Commits

Author SHA1 Message Date
  Neal H. Walfield 65b06b2f2c XXX: ci 5 months ago
3 changed files with 38 additions and 3 deletions
Split View
  1. +34
    -0
      .ci/all_commits.sh
  2. +4
    -0
      .ci/snippet_for_cross_compilation_config.toml
  3. +0
    -3
      Cargo.toml

+ 34
- 0
.ci/all_commits.sh View File

@ -0,0 +1,34 @@
#!/usr/bin/env bash
# Test all commits on this branch but the last one.
#
# Used in the all_commits ci job to ensure all commits build
# and tests pass at least for the sequoia-openpgp crate.
# NOTE: under gitlab's Settings, "CI/CD", General Pipelines ensure
# that the "git shallow clone" setting is set to 0. Otherwise other
# branch are not fetched.
set -e
set -x
# Use dummy identity to make git rebase happy.
git config user.name "C.I. McTestface"
git config user.email "ci.mctestface@example.com"
# If the previous commit already is on main we're done.
git merge-base --is-ancestor HEAD~ origin/main &&
echo "All commits tested already" &&
exit 0
# Leave out the last commit - it has already been checked.
git checkout HEAD~
git status
git rebase origin/main \
--exec 'echo ===; echo ===; echo ===; git log -n 1;' \
--exec 'cargo test --all' &&
echo "All commits passed tests" &&
exit 0
# The rebase failed - probably because a test failed.
git rebase --abort; exit 1

+ 4
- 0
.ci/snippet_for_cross_compilation_config.toml View File

@ -0,0 +1,4 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
runner = "qemu-arm"

+ 0
- 3
Cargo.toml View File

@ -17,10 +17,7 @@ maintenance = { status = "actively-developed" }
[dependencies]
anyhow = "1"
backtrace = "0.3.61"
buffered-reader = "1"
chrono = "0.4"
configparser = "2"
csv = "1.1"
enumber = "0.3"
lazy_static = "1"
libc = "0.2"


Loading…
Cancel
Save