Skip to content
Snippets Groups Projects

[Rebased] Splitting toml files and CI for better overview and more parallelism.

Merged Nils Kohl requested to merge kohl/split-toml-and-ci-rebased into main
Compare and
13 files
+ 776
711
Preferences
Compare changes
Files
13
+ 75
4
hyteg-hog-integration-test:
stages:
- pretest
- test
compare_number_of_directories_and_toml_files:
stage: pretest
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
script:
- find operators/* -maxdepth 0 -type d | wc -l > num_directories.txt
- find ./*.toml | wc -l > num_toml_files.txt
- cat num_directories.txt num_toml_files.txt
- diff num_directories.txt num_toml_files.txt
tags:
- docker
.hyteg-hog-integration-test-template:
stage: test
image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
script:
@@ -10,10 +25,66 @@ hyteg-hog-integration-test:
- GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0="url.https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de.insteadOf" GIT_CONFIG_VALUE_0="ssh://git@i10git.cs.fau.de" python -m pip install -r requirements.txt
- pip freeze
- rm -rf ../operators/*
- python3 generate.py -o ../operators ../operators.toml --processes 8
- python3 generate.py -o ../operators ../operators-$OPERATOR_BASE_NAME.toml --processes 8
- cd ..
- cd operators/$OPERATOR_BASE_NAME
- pwd
- ls -lhta
- git status
- git diff
- git diff --exit-code --stat
- git diff .
- git diff --exit-code --stat .
variables:
- OPERATOR_BASE_NAME: "OPERATOR_NOT_SPECIFIED"
tags:
- docker
curl_curl:
stage: pretest # <=== THIS RUNS IN PRETEST STAGE
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "curl_curl"
diffusion:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "diffusion"
div_k_grad:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "div_k_grad"
divergence:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "divergence"
epsilon:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "epsilon"
full_stokes:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "full_stokes"
gradient:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "gradient"
k_mass:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "k_mass"
mass:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "mass"
terraneo:
extends: .hyteg-hog-integration-test-template
variables:
OPERATOR_BASE_NAME: "terraneo"
\ No newline at end of file