mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-22 19:53:49 +01:00
Actually, only build if linting checks out. And make Gitlab CI work.
This commit is contained in:
parent
c4d74115f8
commit
cb63d3fef8
@ -62,7 +62,7 @@ lint:fmt:
|
||||
# Check if the code builds on rust stable
|
||||
stable:build:
|
||||
stage: build
|
||||
needs: []
|
||||
needs: ["lint:clippy", "lint:fmt"]
|
||||
only:
|
||||
- main
|
||||
- development
|
||||
@ -89,19 +89,23 @@ stable:build:
|
||||
reports:
|
||||
junit:
|
||||
- report.xml
|
||||
only:
|
||||
- main
|
||||
- development
|
||||
- merge_requests
|
||||
|
||||
# Run unit tests
|
||||
unit test 1/3:
|
||||
unit test 1:3:
|
||||
variables:
|
||||
TEST_TARGET: "--lib"
|
||||
extends: .tests
|
||||
|
||||
unit test 2/3:
|
||||
unit test 2:3:
|
||||
variables:
|
||||
TEST_TARGET: "--bins"
|
||||
extends: .tests
|
||||
|
||||
unit test 3/3:
|
||||
unit test 3:3:
|
||||
variables:
|
||||
TEST_TARGET: "--examples"
|
||||
extends: .tests
|
||||
@ -166,4 +170,4 @@ build:docker-development:
|
||||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
||||
- /kaniko/executor --force --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:dev-latest
|
||||
only:
|
||||
- development
|
||||
- development
|
||||
|
Loading…
Reference in New Issue
Block a user