Skip to content
Snippets Groups Projects
Verified Commit ac31f70a authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Test includes.

parent 9ecf1983
No related branches found
No related tags found
No related merge requests found
variables:
GIT_STRATEGY: fetch
OPENMPI_VERSIONS: 'off 2.1.6 3.1.4 4.0.1'
stages:
- test
- package
build-container:
tags:
- docker-shell
stage: build
script:
- git submodule update --init ThirdParty/container-maker
- virtualenv .venv
- source .venv/bin/activate
- pip install -r ThirdParty/container-maker/requirements.txt
- export PYTHONPATH="${PYTHONPATH}:${PWD}/ThirdParty/container-maker"
- python ThirdParty/container-maker/ogscm/cli.py -B -C -R --ogs . --pm system --cvode --ompi $OPENMPI_VERSIONS
artifacts:
paths:
- _out/images/*.sif
include:
- local: '/scripts/ci/jobs/container.yml'
- local: '/scripts/ci/jobs/build.yml'
build:
stage: test
variables:
CONAN_USER_HOME: "$CI_PROJECT_DIR"
CCACHE_DIR: "$CI_PROJECT_DIR/.ccache"
CTEST_NUM_THREADS: '4'
CTEST_LARGE_NUM_THREADS: '3'
image:
name: ogs6/gcc
entrypoint:
- '/usr/bin/env'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
cache:
paths:
- .conan
- .ccache
before_script:
- mkdir -p build
- cd build
script:
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DOGS_BUILD_PROCESSES=GroundwaterFlow
- cmake --build . --target tests
- cmake --build . --target ctest -j 3
container:
only:
refs:
- master
tags:
- docker-shell
stage: package
variables:
GIT_STRATEGY: fetch
OPENMPI_VERSIONS: 'off 2.1.6 3.1.4 4.0.1'
script:
- git submodule update --init ThirdParty/container-maker
- virtualenv .venv
- source .venv/bin/activate
- pip install -r ThirdParty/container-maker/requirements.txt
- export PYTHONPATH="${PYTHONPATH}:${PWD}/ThirdParty/container-maker"
- python ThirdParty/container-maker/ogscm/cli.py -B -C -R --ogs . --pm system --cvode --ompi $OPENMPI_VERSIONS
artifacts:
paths:
- _out/images/*.sif
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