Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OPOSSUM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
phelix
rust
OPOSSUM
Commits
7c4d007e
Commit
7c4d007e
authored
1 year ago
by
Udo Eisenbarth
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
8d0ade16
No related branches found
No related tags found
No related merge requests found
Pipeline
#7683
failed
1 year ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+65
-46
65 additions, 46 deletions
.gitlab-ci.yml
with
65 additions
and
46 deletions
.gitlab-ci.yml
+
65
−
46
View file @
7c4d007e
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment