okay I guess?

This commit is contained in:
Nadja Reitzenstein 2022-05-05 21:17:52 +02:00
parent eb8aa5a352
commit 67b46a85bb

View File

@ -45,9 +45,9 @@ before_script:
lint:clippy: lint:clippy:
extends: .lints extends: .lints
script: script:
- cargo +stable clippy -V - cargo clippy -V
- echo -e "\e[0Ksection_start:`date +%s`:clippy_output\r\e[0K`cargo clippy` output" - echo -e "\e[0Ksection_start:`date +%s`:clippy_output\r\e[0K`cargo clippy` output"
- cargo +stable clippy -- --no-deps - cargo clippy -- --no-deps
- echo -e "\e[0Ksection_end:`date +%s`:clippy_output\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:clippy_output\r\e[0K"
# Use rustfmt to check formating # Use rustfmt to check formating
@ -55,9 +55,9 @@ lint:fmt:
extends: .lints extends: .lints
allow_failure: false allow_failure: false
script: script:
- cargo +stable fmt --version - cargo fmt --version
- echo -e "\e[0Ksection_start:`date +%s`:rustfmt_output\r\e[0KChanges suggested by rustfmt" - echo -e "\e[0Ksection_start:`date +%s`:rustfmt_output\r\e[0KChanges suggested by rustfmt"
- cargo +stable fmt --check -- -v - cargo fmt --check -- -v
- echo -e "\e[0Ksection_end:`date +%s`:rustfmt_output\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:rustfmt_output\r\e[0K"
# Check if the code builds on rust stable # Check if the code builds on rust stable
@ -68,9 +68,9 @@ stable:build:
- development - development
- merge_requests - merge_requests
script: script:
- rustc +stable --version && cargo +stable --version - rustc +stable --version && cargo --version
- echo -e "\e[0Ksection_start:`date +%s`:build_output\r\e[0KOutput of `cargo check`" - echo -e "\e[0Ksection_start:`date +%s`:build_output\r\e[0KOutput of `cargo check`"
- cargo +stable check --verbose - cargo check --verbose
- echo -e "\e[0Ksection_end:`date +%s`:build_output\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:build_output\r\e[0K"
stable:test: stable:test:
@ -82,7 +82,7 @@ stable:test:
- merge_requests - merge_requests
script: script:
- echo -e "\e[0Ksection_start:`date +%s`:build_output\r\e[0KOutput of `cargo test --no-run`" - echo -e "\e[0Ksection_start:`date +%s`:build_output\r\e[0KOutput of `cargo test --no-run`"
- cargo +stable test --verbose --no-run --workspace - cargo test --verbose --no-run --workspace
- echo -e "\e[0Ksection_end:`date +%s`:build_output\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:build_output\r\e[0K"
.tests: .tests:
@ -90,7 +90,7 @@ stable:test:
needs: ["stable:test"] needs: ["stable:test"]
script: script:
- > - >
cargo +stable test --workspace $TEST_TARGET -- cargo test --workspace $TEST_TARGET --
-Z unstable-options --format json --report-time -Z unstable-options --format json --report-time
| cargo2junit > report.xml | cargo2junit > report.xml
artifacts: artifacts: