Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Exercise Project
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HIFIS
HIFIS Software Services
Education and Training
Workshop Materials
Continuous Integration in GitLab
Exercise Project
Commits
c84f853b
Commit
c84f853b
authored
2 years ago
by
Hueser, Christian
Committed by
Huste, Tobias
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Extend CI pipeline by additional CI use cases
* New CI jobs are license_compliance, lint, build, test, run.
parent
4ad5d4d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+94
-4
94 additions, 4 deletions
.gitlab-ci.yml
with
94 additions
and
4 deletions
.gitlab-ci.yml
+
94
−
4
View file @
c84f853b
...
...
@@ -6,11 +6,32 @@
---
stages
:
-
lint
-
build
-
test
-
run
run
:
image
:
gcc:14
stage
:
run
license_compliance
:
image
:
python:3.9
stage
:
lint
before_script
:
-
pip install --upgrade pip
-
pip install reuse
script
:
-
reuse lint
lint
:
image
:
python:3.9
stage
:
lint
before_script
:
-
pip install --upgrade pip
-
pip install cpplint
script
:
-
cpplint --recursive src/ tests/
build:gcc:10
:
image
:
gcc:10
stage
:
build
before_script
:
-
apt-get update && apt-get -qy install python3 python3-pip pipx
-
pipx ensurepath && source ~/.bashrc
...
...
@@ -18,6 +39,75 @@ run:
script
:
-
cmake -S . -B build
-
cmake --build build
-
./build/bin/helloWorld
artifacts
:
paths
:
-
build/
build:gcc:11
:
image
:
gcc:11
stage
:
build
before_script
:
-
apt-get update && apt-get -qy install python3 python3-pip
-
pip3 install cmake
script
:
-
cmake -S . -B build
-
cmake --build build
artifacts
:
paths
:
-
build/
build:gcc:12
:
image
:
gcc:12
stage
:
build
before_script
:
-
apt-get update && apt-get -qy install python3 python3-pip
-
pip3 install cmake
script
:
-
cmake -S . -B build
-
cmake --build build
artifacts
:
paths
:
-
build/
test:gcc:10
:
image
:
gcc:10
stage
:
test
before_script
:
-
apt-get update && apt-get -qy install python3 python3-pip
-
pip3 install cmake
script
:
-
cd build && ctest
dependencies
:
-
build:gcc:10
test:gcc:11
:
image
:
gcc:11
stage
:
test
before_script
:
-
apt-get update && apt-get -qy install python3 python3-pip
-
pip3 install cmake
script
:
-
cd build && ctest
dependencies
:
-
build:gcc:11
test:gcc:12
:
image
:
gcc:12
stage
:
test
before_script
:
-
apt-get update && apt-get -qy install python3 python3-pip
-
pip3 install cmake
script
:
-
cd build && ctest
dependencies
:
-
build:gcc:12
run
:
image
:
gcc:11
stage
:
run
script
:
-
cd build/bin/ && ./helloWorld
dependencies
:
-
build:gcc:11
...
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