Skip to content
Snippets Groups Projects
Commit 849ba805 authored by Udo Eisenbarth's avatar Udo Eisenbarth :speech_balloon:
Browse files

Extend CI pipeline

parent e25b714c
No related branches found
No related tags found
No related merge requests found
Pipeline #7341 passed with warnings
# This file is a template, and might need editing before it works on your project.
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Rust.gitlab-ci.yml
# Official language image. Look for the different tagged releases at: # Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/ # https://hub.docker.com/r/library/rust/tags/
image: "rust:latest" image: "rust:latest"
...@@ -25,16 +16,49 @@ image: "rust:latest" ...@@ -25,16 +16,49 @@ image: "rust:latest"
# - apt-get update -yqq # - apt-get update -yqq
# - apt-get install -yqq --no-install-recommends build-essential # - apt-get install -yqq --no-install-recommends build-essential
stages:
- test
- build
# - deploy
# Build the main application (currently mostly useless)
build-main:
stage: build
script:
- export HTTPS_PROXY=lxproxy01.gsi.de:3128
- export HTTP_PROXY=lxproxy01.gsi.de:3128
- export https_proxy=lxproxy01.gsi.de:3128
- export http_proxy=lxproxy01.gsi.de:3128
- cargo build
# Build API documentation
build-doc:
stage: build
script:
- export HTTPS_PROXY=lxproxy01.gsi.de:3128
- export HTTP_PROXY=lxproxy01.gsi.de:3128
- export https_proxy=lxproxy01.gsi.de:3128
- export http_proxy=lxproxy01.gsi.de:3128
- cargo doc --no-deps
# Use cargo to test the project # Use cargo to test the project
test:cargo: test:cargo:
stage: test
script: script:
- export HTTPS_PROXY=lxproxy01.gsi.de:3128 - export HTTPS_PROXY=lxproxy01.gsi.de:3128
- export HTTP_PROXY=lxproxy01.gsi.de:3128 - export HTTP_PROXY=lxproxy01.gsi.de:3128
- export https_proxy=lxproxy01.gsi.de:3128 - export https_proxy=lxproxy01.gsi.de:3128
- export http_proxy=lxproxy01.gsi.de:3128 - export http_proxy=lxproxy01.gsi.de:3128
- rustc --version && cargo --version # Print version info for debugging - rustc --version && cargo --version # Print version info for debugging
- cargo test --workspace # --verbose - cargo test --workspace
test:clippy:
stage: test
script:
- export HTTPS_PROXY=lxproxy01.gsi.de:3128
- export HTTP_PROXY=lxproxy01.gsi.de:3128
- export https_proxy=lxproxy01.gsi.de:3128
- export http_proxy=lxproxy01.gsi.de:3128
- cargo clippy --workspace
allow_failure: true
# Optional: Use a third party library to generate gitlab junit reports # Optional: Use a third party library to generate gitlab junit reports
# test:junit-report: # test:junit-report:
# script: # script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment