|
|
|
|
@ -147,7 +147,7 @@ build:debug:cargo:x86_64-unknown-linux-musl:
@@ -147,7 +147,7 @@ build:debug:cargo:x86_64-unknown-linux-musl:
|
|
|
|
|
before_script: |
|
|
|
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY |
|
|
|
|
# Only log in to Dockerhub if the credentials are given: |
|
|
|
|
- if [ -n $DOCKER_HUB ]; then docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PASSWORD" "$DOCKER_HUB"; fi |
|
|
|
|
- if [[ -v $DOCKER_HUB ]]; then docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PASSWORD" "$DOCKER_HUB"; fi |
|
|
|
|
script: |
|
|
|
|
# Prepare buildx to build multiarch stuff: |
|
|
|
|
- docker context create 'ci-context' |
|
|
|
|
@ -241,13 +241,20 @@ test:cargo:
@@ -241,13 +241,20 @@ test:cargo:
|
|
|
|
|
before_script: |
|
|
|
|
- mkdir -p $CARGO_HOME && echo "using $CARGO_HOME to cache cargo deps" |
|
|
|
|
- apt-get update -yqq |
|
|
|
|
- apt-get install -yqq --no-install-recommends build-essential libssl-dev pkg-config |
|
|
|
|
- apt-get install -yqq --no-install-recommends build-essential libssl-dev pkg-config wget |
|
|
|
|
- rustup component add clippy rustfmt |
|
|
|
|
- wget "https://faulty-storage.de/gitlab-report" |
|
|
|
|
- chmod +x ./gitlab-report |
|
|
|
|
script: |
|
|
|
|
- rustc --version && cargo --version # Print version info for debugging |
|
|
|
|
- cargo fmt --all -- --check |
|
|
|
|
- cargo test --workspace --verbose --locked |
|
|
|
|
- cargo clippy --color always |
|
|
|
|
- "cargo test --color always --workspace --verbose --locked --no-fail-fast -- -Z unstable-options --format json | ./gitlab-report -p test > $CI_PROJECT_DIR/report.xml" |
|
|
|
|
- "cargo clippy --color always --verbose --message-format=json | ./gitlab-report -p clippy > $CI_PROJECT_DIR/gl-code-quality-report.json" |
|
|
|
|
artifacts: |
|
|
|
|
when: always |
|
|
|
|
reports: |
|
|
|
|
junit: report.xml |
|
|
|
|
codequality: gl-code-quality-report.json |
|
|
|
|
|
|
|
|
|
test:sytest: |
|
|
|
|
stage: "test" |
|
|
|
|
|