32 lines
548 B
YAML
32 lines
548 B
YAML
default:
|
|
image: rust:latest
|
|
|
|
stages:
|
|
- test
|
|
|
|
unit-test-job:
|
|
stage: test
|
|
script:
|
|
- echo "Running unit tests..."
|
|
- cargo test
|
|
|
|
unsafe-test-job:
|
|
stage: test
|
|
script:
|
|
- echo "Checking if List is still safe"
|
|
- rustup +nightly component add miri
|
|
- export MIRIFLAGS="-Zmiri-disable-isolation"
|
|
- cargo +nightly miri test utility::list::test
|
|
only:
|
|
changes:
|
|
- "src/utility/list.rs"
|
|
|
|
lint-test-job:
|
|
only:
|
|
refs:
|
|
- merge_requests
|
|
stage: test
|
|
script:
|
|
- echo "Linting code..."
|
|
- cargo clippy
|