1
0
mirror of https://gitlab.com/MisterBiggs/aoc_2015-rust.git synced 2025-06-15 14:36:43 +00:00
aoc_2015-Rust/.gitlab-ci.yml

21 lines
631 B
YAML

# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/
image: "rust:latest"
# Use cargo to test the project
test:cargo:
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo test --workspace --verbose
# Optional: Use a third party library to generate gitlab junit reports
test:junit-report:
script:
- cargo install junitify
- cargo test -- --format=json -Z unstable-options --report-time | junitify --out $CI_PROJECT_DIR/tests/
artifacts:
when: always
reports:
junit: $CI_PROJECT_DIR/tests/*.xml