Skip to content

Commit 6aab250

Browse files
committed
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: rust-lang/cargo#4251
1 parent de70a03 commit 6aab250

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ variables:
77

88
# Cache the Cargo dir and build artifacts
99
cache:
10-
paths:
11-
- cargo/
12-
- target/
10+
paths:
11+
- cargo/
12+
- target/
1313

1414
# Add the thumbv7em-none-eabihf target for Rust
1515
before_script:
@@ -19,10 +19,11 @@ before_script:
1919
stages:
2020
- build
2121

22-
# Run `cargo build` for the project with stable Rust
22+
# Run `cargo build` and `cargo test for the project with stable Rust
2323
rust-build:
2424
stage: build
2525
image: rust:latest
2626
script:
2727
- rustc --version && cargo --version
2828
- cargo build --release --jobs 1
29+
- env RUSTDOCFLAGS=-Cpanic=abort cargo test -- --test-threads 1

0 commit comments

Comments
 (0)