Skip to content

Commit 3871c61

Browse files
committed
Adjust CI to test MSRV and allow nightly to fail
We're now documenting an (arbitrarily chosen) MSRV of 1.37.0 and testing it in CI while also making nightly tests informational only. Signed-off-by: Daniel Egger <daniel@eggers-club.de>
1 parent d35250c commit 3871c61

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ env:
99
- TARGET=x86_64-unknown-linux-gnu
1010

1111
matrix:
12+
allow_failures:
13+
- rust: nightly
14+
1215
include:
1316
# rustfmt
1417
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=rustfmt
1518
rust: stable
1619

17-
# Nightly, for testing
20+
# All generated code should be running on stable now
1821
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Atmel
1922

2023
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Freescale
@@ -39,6 +42,11 @@ matrix:
3942

4043
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Toshiba
4144

45+
# MSRV
46+
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=Nordic
47+
rust: 1.37.0
48+
49+
# Only works on nightly for now
4250
- env: TARGET=x86_64-unknown-linux-gnu VENDOR=OTHER
4351
rust: nightly
4452

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ This project is developed and maintained by the [Tools team][team].
1111

1212
# [API](https://docs.rs/svd2rust)
1313

14+
## Requirements
15+
16+
The **generated code** is intended to compile on all stable versions of Rust greater or equal to **1.37.0**, as well as the latest beta and the latest nightly.
17+
18+
If you encounter compilation errors on any stable version newer than 1.37.0, please open an issue.
19+
1420
# Testing Locally
1521

1622
`svd2rust-regress` is a helper program for regression testing changes against `svd2rust`. This tool can be used locally to check modifications of `svd2rust` locally before submitting a PR.

0 commit comments

Comments
 (0)