Actually, only build if linting checks out. And make Gitlab CI work.

This commit is contained in:
Nadja Reitzenstein 2022-05-05 19:40:54 +02:00
parent c4d74115f8
commit cb63d3fef8

View File

@ -62,7 +62,7 @@ lint:fmt:
# Check if the code builds on rust stable # Check if the code builds on rust stable
stable:build: stable:build:
stage: build stage: build
needs: [] needs: ["lint:clippy", "lint:fmt"]
only: only:
- main - main
- development - development
@ -89,19 +89,23 @@ stable:build:
reports: reports:
junit: junit:
- report.xml - report.xml
only:
- main
- development
- merge_requests
# Run unit tests # Run unit tests
unit test 1/3: unit test 1:3:
variables: variables:
TEST_TARGET: "--lib" TEST_TARGET: "--lib"
extends: .tests extends: .tests
unit test 2/3: unit test 2:3:
variables: variables:
TEST_TARGET: "--bins" TEST_TARGET: "--bins"
extends: .tests extends: .tests
unit test 3/3: unit test 3:3:
variables: variables:
TEST_TARGET: "--examples" TEST_TARGET: "--examples"
extends: .tests extends: .tests