mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-10 17:43:23 +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
|
# 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
|
||||||
@ -166,4 +170,4 @@ build:docker-development:
|
|||||||
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
- 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
|
- /kaniko/executor --force --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:dev-latest
|
||||||
only:
|
only:
|
||||||
- development
|
- development
|
||||||
|
Loading…
Reference in New Issue
Block a user