mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-15 18:38:23 +01:00
Refactor testDiffusion.cpp and Diffusion.hpp to improve code readability and maintainability. Remove unnecessary exception throwing and replace with assert statements for invalid arguments.
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
image: git.gfz-potsdam.de:5000/naaice/tug:ci
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- static_analyze
|
|
- doc
|
|
|
|
build_release:
|
|
stage: build
|
|
artifacts:
|
|
paths:
|
|
- build/test/testTug
|
|
expire_in: 100s
|
|
script:
|
|
- mkdir build && cd build
|
|
- cmake -DCMAKE_BUILD_TYPE=Debug -DTUG_ENABLE_TESTING=ON ..
|
|
- make -j$(nproc)
|
|
- cp ../test/FTCS_11_11_7000.csv test/
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- ./build/test/testTug
|
|
|
|
pages:
|
|
stage: doc
|
|
image: python:slim
|
|
before_script:
|
|
- apt-get update && apt-get install --no-install-recommends -y graphviz imagemagick doxygen make
|
|
- pip install --upgrade pip && pip install Sphinx Pillow breathe sphinx-rtd-theme m2r2
|
|
- mkdir public
|
|
script:
|
|
- pushd docs_sphinx
|
|
- make html
|
|
- popd && mv docs_sphinx/_build/html/* public/
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
rules:
|
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
|
|
|
lint:
|
|
stage: static_analyze
|
|
before_script:
|
|
- apk add clang-extra-tools openmp-dev
|
|
script:
|
|
- mkdir lint && cd lint
|
|
- cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-checks=cppcoreguidelines-*,clang-analyzer-*,performance-*" -DTUG_ENABLE_TESTING=OFF ..
|
|
- make tug
|
|
when: manual
|