Skip to content
Snippets Groups Projects
Commit c84f853b authored by Hueser, Christian's avatar Hueser, Christian Committed by Huste, Tobias
Browse files

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
......@@ -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
...
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