mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 09:28:23 +01:00
Update .gitlab-ci.yml
This commit is contained in:
parent
4a65da7af5
commit
49128f922d
@ -3,20 +3,41 @@ image: sobc/gitlab-ci
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
- analysis
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update && apt-get install -y libeigen3-dev
|
- apt-get update && apt-get install -y libeigen3-dev
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
artifacts:
|
||||||
|
- build/src/test
|
||||||
|
- build/src/2D
|
||||||
script:
|
script:
|
||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
- make
|
- make
|
||||||
|
|
||||||
lint:
|
run_1D:
|
||||||
stage: test
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
script:
|
||||||
|
- ./build/src/test
|
||||||
|
|
||||||
|
run_2D:
|
||||||
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
script:
|
||||||
|
- ./build/src/2D
|
||||||
|
|
||||||
|
lint:
|
||||||
|
stage: analysis
|
||||||
script:
|
script:
|
||||||
- mkdir build && cd build
|
- mkdir build && cd build
|
||||||
- cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-checks=cppcoreguidelines-*,clang-analyzer-*,performance-*,readability-*, modernize-*" ..
|
- cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-checks=cppcoreguidelines-*,clang-analyzer-*,performance-*,readability-*, modernize-*" ..
|
||||||
- make
|
- make
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user