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
849ba805
Commit
849ba805
authored
1 year ago
by
Udo Eisenbarth
Browse files
Options
Downloads
Patches
Plain Diff
Extend CI pipeline
parent
e25b714c
No related branches found
No related tags found
No related merge requests found
Pipeline
#7341
passed with warnings
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
+35
-11
35 additions, 11 deletions
.gitlab-ci.yml
with
35 additions
and
11 deletions
.gitlab-ci.yml
+
35
−
11
View file @
849ba805
# 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:
...
...
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