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

Update .gitlab-ci.yml file

parent 8d0ade16
No related branches found
No related tags found
No related merge requests found
Pipeline #7683 failed
...@@ -22,76 +22,95 @@ stages: ...@@ -22,76 +22,95 @@ stages:
- build - build
- deploy - deploy
# Build the main application (currently mostly useless) # Test the project for linux environment
build-main: #test_linux:
stage: build # stage: test
tags: # tags:
- opossum # - opossum
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
- cargo build # - rustup default nightly
dependencies: # - cargo install junitify
- test:cargo # - rustc --version && cargo --version # Print version info for debugging
# # - cargo test --workspace
# - cargo test -- --format=json -Z unstable-options --report-time | junitify --out $CI_PROJECT_DIR/tests/
# artifacts:
# when: always
# reports:
# junit: $CI_PROJECT_DIR/tests/*.xml
# Build API documentation test_windows:
build-doc:
stage: build
tags:
- opossum
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
dependencies:
- test:cargo
# Use cargo to test the project
test:cargo:
stage: test stage: test
tags: tags:
- opossum - windows
script: script:
- export HTTPS_PROXY=lxproxy01.gsi.de:3128 - $Env:CARGO_HOME="C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo"
- export HTTP_PROXY=lxproxy01.gsi.de:3128 - $Env:CARGO_TARGET_DIR="C:\Users\ueisenb\Appdata\Local\0_gsi_executables\gitlab-runner\target"
- export https_proxy=lxproxy01.gsi.de:3128 - $Env:Path += ";C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo\bin"
- export http_proxy=lxproxy01.gsi.de:3128
- rustup default nightly - rustup default nightly
- cargo install junitify - cargo install junitify
- rustc --version && cargo --version # Print version info for debugging
# - cargo test --workspace
- cargo test -- --format=json -Z unstable-options --report-time | junitify --out $CI_PROJECT_DIR/tests/ - cargo test -- --format=json -Z unstable-options --report-time | junitify --out $CI_PROJECT_DIR/tests/
artifacts: artifacts:
when: always when: always
reports: reports:
junit: $CI_PROJECT_DIR/tests/*.xml junit: $CI_PROJECT_DIR/tests/*.xml
test:clippy: clippy:
stage: test stage: test
tags: tags:
- opossum - windows
script: script:
- export HTTPS_PROXY=lxproxy01.gsi.de:3128 - $Env:CARGO_HOME="C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo"
- export HTTP_PROXY=lxproxy01.gsi.de:3128 - $Env:CARGO_TARGET_DIR="C:\Users\ueisenb\Appdata\Local\0_gsi_executables\gitlab-runner\target"
- export https_proxy=lxproxy01.gsi.de:3128 - $Env:Path += ";C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo\bin"
- export http_proxy=lxproxy01.gsi.de:3128
- rustup component add clippy
- cargo clippy --workspace - cargo clippy --workspace
allow_failure: true allow_failure: true
dependencies: dependencies:
- test:cargo - test_windows
test:clippy_windows:
stage: test # Build the main application (currently mostly useless)
build-windows:
stage: build
tags: tags:
- windows - windows
script: script:
- $Env:CARGO_HOME="C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo" - $Env:CARGO_HOME="C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo"
- $Env:CARGO_TARGET_DIR="C:\Users\ueisenb\Appdata\Local\0_gsi_executables\gitlab-runner\target" - $Env:CARGO_TARGET_DIR="C:\Users\ueisenb\Appdata\Local\0_gsi_executables\gitlab-runner\target"
- $Env:Path += ";C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo\bin" - $Env:Path += ";C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo\bin"
- cargo clippy --workspace - cargo build
dependencies:
- test_windows
# Build the main application for linux
#build-linux:
# stage: build
# tags:
# - opossum
# 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
# dependencies:
# - test:cargo
# Build API documentation
build-doc:
stage: build
tags:
- windows
script:
- $Env:CARGO_HOME="C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo"
- $Env:CARGO_TARGET_DIR="C:\Users\ueisenb\Appdata\Local\0_gsi_executables\gitlab-runner\target"
- $Env:Path += ";C:\Users\ueisenb\AppData\Local\0_gsi_executables\.cargo\bin"
- cargo doc --no-deps
dependencies:
- test_windows
#deploy: #deploy:
# stage: deploy # stage: deploy
......
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