Heiko Schaefer
318571db4f
ci: pick dependency versions so that rustc 1.63 can build
2023-11-03 15:02:43 +01:00
Heiko Schaefer
cb53e0826c
ci: Install cmake for semver-checks
2023-11-03 09:27:48 +01:00
Heiko Schaefer
46b265637c
ci: run cargo-semver-checks
2023-09-10 14:39:18 +02:00
Heiko Schaefer
c6518b91e2
ci: disable hardware tests; run udeps independently
...
udeps takes relatively long to run, and shouldn't block the other stages.
2023-08-24 21:52:51 +02:00
Heiko Schaefer
ce1e0e0bc4
ci: fix dependencies for rust 1.63-based jobs
2023-08-24 21:48:43 +02:00
Heiko Schaefer
0b5281b56a
ci: patch dependencies for rust 1.63-based jobs
2023-08-24 06:30:36 +02:00
Heiko Schaefer
06cb246a79
ci: allow failure for debian job
2023-08-04 15:09:38 +02:00
Heiko Schaefer
1be9cea119
ci: allow clippy job to fail
2023-08-04 15:09:38 +02:00
Heiko Schaefer
d0fc4b5725
ci: Add tests against canokey virtual card
...
(see https://github.com/canokeys/canokey-core )
Fixes #4 .
2023-05-19 16:30:45 +02:00
Heiko Schaefer
4ef4291b53
ci: manually downgrade lalrpop on debian bookworm-based images
...
This is a workaround to run tests on debian bookworm (with Rust 1.63).
2023-05-19 16:30:45 +02:00
Heiko Schaefer
ff8554de3b
ci: manually add "$HOME/.cargo/bin" to PATH
2023-05-19 16:30:45 +02:00
Heiko Schaefer
5e96cb6f07
ci: fix opgpcard-rs test image
...
There is currently no opcard-rs-builddeps image, use opcard-rs-tools instead.
2023-05-19 15:55:50 +02:00
Heiko Schaefer
81ef12ffb2
ci: set PATH for smartpgp-builddeps image
2023-05-01 19:07:48 +02:00
Heiko Schaefer
7a28d36e93
openpgp-card-tools moved to https://codeberg.org/openpgp-card/openpgp-card-tools
2023-03-17 15:16:27 +01:00
Wiktor Kwapisiewicz
6c3163da4b
CI: Install cargo-udeps in a more straightforward way
2023-02-14 16:22:07 +01:00
Heiko Schaefer
fd07f6b6b9
ci: work around confusing cargo-fmt problem with CARGO_HOME
2022-11-03 14:43:28 +01:00
Heiko Schaefer
27697cb2c5
add rustfmt.toml and set group_imports = "StdExternalCrate"
2022-11-03 14:32:00 +01:00
Nora Widdecke
8c9d792c42
ci: prevent multithreading for subplot tests
...
- There is only one virtual card, accessing it from multiple programs
in parallel leads to undefined behavior.
2022-10-28 09:45:27 +02:00
Nora Widdecke
09c554affd
opgpcard: Test key use.
...
- Add tests for all four combinations of key generation and import,
and signing and decrypting.
2022-10-28 09:45:27 +02:00
Nora Widdecke
dfb7f3275d
opgpcard: Replace flagfile with environment variable
...
- A flagfile requires manual management with touch and rm, replace it
with an environment variable that can be set more conveniently.
- Removing tools/tests/opgpcard.rs is not necessary, the file it links
to is always generated in build.rs, either with subplot tests or
without. But it is always there, so cargo test does not fail for
that reason.
2022-10-27 15:46:42 +02:00
Nora Widdecke
5bad1e7624
ci: Cache the cargo-deny binary
2022-10-27 13:25:48 +02:00
Heiko Schaefer
6101e17979
ci: Update udeps
2022-10-25 14:53:05 +02:00
Nora Widdecke
a9d6c11bcc
ci: Use separate cache for subplot job
...
- Some subplot tests require a virtual card. Those are not always
available on a system, so subplot uses the
tests/virtual-card-available file to note whether a virtual card is
available, and only generates those tests if it is.
- That file is included in the cache, so the cache should not be
shared.
2022-10-25 14:09:24 +02:00
Nora Widdecke
7113de821e
ci: Remove superflous workaround
2022-10-25 12:13:50 +02:00
Nora Widdecke
baf7895024
ci: Report rust and cargo versions
2022-10-25 12:13:50 +02:00
Nora Widdecke
e82d30b956
ci: Extract subplot into its own job
...
- Subplot requires the presence of virtual cards, so it needs an image
where they are present. However this interferes with the intentions
of the cargo-test and cargo-test-debian-bookworm jobs.
- Revert the cargo-test and cargo-test-debian-bookworm jobs to the
environments they used to test, rust:latest and
debain:bookworm-slim, respectively.
- Add a test "subplot" that runs the subplot tests as part of the
virtual-test stage.
2022-10-25 12:13:47 +02:00
Lars Wirzenius
264a5a7c90
.gitlab-ci.yml: use container with virtual smartcard for tests
...
This doesn't change anything for existing tests but allows testing
opgpcard against a virtual smartcard later on.
Sponsored-by: NLnet Foundation; NGI Assure
2022-10-24 19:05:24 +03:00
puzzlewolf
28b0956916
Do not run the hardware tests on forks.
...
- Forks of this project do not have access to cookiejar's hardware
keys. They do not have a gitlab CI runner that can pick up those
jobs, so the pipeline eventually fails with a timeout.
- Prevent hardware related jobs from being created for forked
projects.
2022-10-24 13:30:40 +02:00
Heiko Schaefer
e09fc63d56
Use simplified start script for all virtual cards.
2022-10-21 18:07:25 +02:00
Heiko Schaefer
0d978f8dcb
card-functionality: use virtual 'opcard-rs' card in CI
2022-10-21 18:07:24 +02:00
Heiko Schaefer
12f2ad005c
Run CI tests with RUST_BACKTRACE=1 ( fixes #39 )
2022-07-29 09:33:01 +02:00
Heiko Schaefer
1ac64f5360
Move user guide to https://gitlab.com/openpgp-card/guide
2022-06-12 00:09:21 +02:00
Heiko Schaefer
6d52835efa
Adjust paths for move to gitlab group 'openpgp-card'.
2022-06-11 21:46:32 +02:00
Heiko Schaefer
c3abf4ba9c
Move virtual card CI test configs to card-functionality/ci/ (where configurations for tests on hardware cards already were).
2022-05-19 18:02:37 +02:00
Heiko Schaefer
77822e716d
Redirect output of jCardSim to /dev/null, to keep its debug output out of the CI log.
...
The virtual card images used to do this kind of redirect. Now the consumer of the images needs to decide if they want to see virtual card debug output. We don't want to see it, by default.
2022-05-19 18:02:10 +02:00
Heiko Schaefer
7322e44efc
Run opgpcard status
and opgpcard info
before virtual card tests.
2022-05-19 18:02:09 +02:00
Heiko Schaefer
13edd290ef
Add FluffyPGP to CI tests
2022-05-13 23:05:04 +02:00
Heiko Schaefer
195eb4b243
Make CI cache config explicit for all jobs; disable cache for all jobs that don't build Rust code.
2022-04-26 14:00:03 +02:00
Heiko Schaefer
9057ad516f
First part of end-user guide.
2022-04-21 18:08:38 +02:00
Heiko Schaefer
161ef5592b
Run cargo-udeps in CI to find unused dependencies
2022-04-12 14:51:39 +02:00
Heiko Schaefer
593d55fa84
Run cargo deny in CI linting stage
2022-03-22 16:49:39 +01:00
Heiko Schaefer
f24bcfa8f8
Disable cache for reuse lint
2022-03-18 13:53:59 +01:00
Heiko Schaefer
b16d657070
Add clippy to CI
2022-03-06 15:20:37 +01:00
Heiko Schaefer
05d5af4c3c
Set timeout for hw-keygen to 2h.
...
Generating keys on cards takes a long time, the default 1h is sometimes just barely enough for all currently tested cards, but not always.
2022-02-17 09:54:22 +01:00
Heiko Schaefer
2c3bc492ab
expect to find a running, shared pcscd instance (passed in from the runner VM)
2022-02-14 16:16:46 +01:00
Heiko Schaefer
f212822ccc
Set RUST_LOG=debug in cookiejar CI.
2022-02-14 15:42:14 +01:00
puzzlewolf
f312ce94f7
Configure caching of Rust build artifacts.
...
Don't 'cd' into the card-functionality directory to run tests ('cd'-ing broke the caching mechanism).
Adjust test configurations accordingly.
2021-12-24 11:37:54 +01:00
puzzlewolf
4988ccea49
Update debian test to bookworm
2021-12-24 11:37:54 +01:00
puzzlewolf
a45586cf13
Use ykneo/smartpgp builddeps images for virtual Java Card tests.
...
Remove unnecessary dockerfiles and run.sh.
Make hardware-builddeps image to run hardware card tests on.
Add license header and cleanup.
2021-12-24 11:37:54 +01:00
puzzlewolf
1722e1b328
Add hardware-OpenPGP card tests on cookiejar CI.
...
Rename stages for clarity.
2021-12-24 11:37:54 +01:00