Commit Graph

5 Commits

Author SHA1 Message Date
Robin Krahl
628377c83b
Refactor test suite to check multiple versions
This patch refactors the test suite:
- Instead of always generating the documentation with the available
  rustdoc version, we now store generated documentation for all
  supported rustdoc versions in the test/html directory.
- Instead of using one snapshot per test case, we now use one snapshot
  per test case and rustdoc version.
2020-09-11 20:30:05 +02:00
Robin Krahl
1a518d7509
Add integration tests
This patch adds an integration test suite using the insta crate for
snapshot testing.  The test suite is tested for all supported Rust
versions and should always succeed for the MSRV (currently 1.40.0) and
the current stable Rust version.

However there are some minor changes in the configuration format between
Rust versions, so tests that don’t work on all supported Rust versions
are marked with the ignore attribute.  But even the ignored tests should
work on the stable Rust release.
2020-08-11 09:31:20 +02:00
Robin Krahl
d4dd4d6548
Run cargo doc before cargo test
This patch fixes the builds by running cargo doc before cargo test.
Without generated documentation, we don’t have anything to test.
2020-07-19 17:39:47 +02:00
Robin Krahl
1204e108cf
Send notification mail on build failure 2020-07-19 17:29:17 +02:00
Robin Krahl
5a6a8f43ce Add build scripts
This patch adds three build scripts for the sr.ht CI:
- archlinux.yml is the main build script.  It builds the project using
  the latest stable release from rustup and executes the tests, clippy
  and rustfmt.  The build also runs the reuse tool to check compliance
  with the reuse specification and verifies that the last commit is
  signed by me.
- archlinux-msrv.yml builds and tests the project on the MSRV, currently
  Rust 1.40.0.
2020-07-19 17:08:01 +02:00