Also run tests during the build phase (for now)
Set an option for running doctests so that they can be run without the "`eh_personality` language item not found" popping up. See also: https://github.com/rust-lang/cargo/issues/4251
This commit is contained in:
parent
de70a03c11
commit
6aab250e73
|
@ -7,9 +7,9 @@ variables:
|
||||||
|
|
||||||
# Cache the Cargo dir and build artifacts
|
# Cache the Cargo dir and build artifacts
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- cargo/
|
- cargo/
|
||||||
- target/
|
- target/
|
||||||
|
|
||||||
# Add the thumbv7em-none-eabihf target for Rust
|
# Add the thumbv7em-none-eabihf target for Rust
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -19,10 +19,11 @@ before_script:
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
# Run `cargo build` for the project with stable Rust
|
# Run `cargo build` and `cargo test for the project with stable Rust
|
||||||
rust-build:
|
rust-build:
|
||||||
stage: build
|
stage: build
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
script:
|
script:
|
||||||
- rustc --version && cargo --version
|
- rustc --version && cargo --version
|
||||||
- cargo build --release --jobs 1
|
- cargo build --release --jobs 1
|
||||||
|
- env RUSTDOCFLAGS=-Cpanic=abort cargo test -- --test-threads 1
|
||||||
|
|
Loading…
Reference in New Issue