Build test harnish as part of the build step

This commit is contained in:
Nadja Reitzenstein 2022-05-05 19:34:51 +02:00
parent 4265393c30
commit 57b98cf15e

View File

@ -73,11 +73,6 @@ stable:build:
- 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 +stable 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:
extends: .builds
needs: ["stable:build"]
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 +stable 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"
@ -85,7 +80,7 @@ stable:test:
.tests: .tests:
stage: test stage: test
needs: needs:
- "stable:test" - "stable:build"
script: script:
- > - >
cargo +stable test --workspace $TEST_TARGET -- cargo +stable test --workspace $TEST_TARGET --