Skip to content

Commit a6b47ee

Browse files
committed
test: replace skeptic with rustdoc
Replace the skeptic tool for checking README code validity with direct run of rustdoc. This elimates a bunch of dependencies while still providing the desired tests. Also clean the work area before building in CI. This avoids an error where document check tools find previously compiled versions of crates and error. Signed-off-by: Nick Stevens <[email protected]>
1 parent e7d4048 commit a6b47ee

File tree

5 files changed

+4
-16
lines changed

5 files changed

+4
-16
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ install:
2424
- cargo -V
2525

2626
script:
27-
- cargo check --verbose --no-default-features
28-
- cargo check --all --verbose
27+
- cargo clean
28+
- cargo build --all --verbose
2929
- cargo test --all --verbose
30+
- rustdoc -L target/debug/deps --test README.md
3031
- cargo doc --all --no-deps
3132

3233
cache:

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ documentation = "https://docs.rs/fixedvec"
99
readme = "README.md"
1010
keywords = ["buffer", "vector", "no_std", "core", "heapless"]
1111
license = "MIT"
12-
build = "build.rs"
13-
14-
[build-dependencies]
15-
skeptic = "0.13"
16-
17-
[dev-dependencies]
18-
skeptic = "0.13"
1912

2013
[features]
2114
unstable = []

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn main() {
6161
License
6262
-------
6363

64-
```
64+
```ignore
6565
Copyright (c) 2015-2016, Nick Stevens <[email protected]>
6666
6767
The MIT License (MIT)

build.rs

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/skeptic.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)