Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt-ci
Commits
00c7c3d6
Commit
00c7c3d6
authored
3 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
Add config template
parent
cf203b01
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xt_and_gdt_config_template.txt
+156
-0
156 additions, 0 deletions
xt_and_gdt_config_template.txt
with
156 additions
and
0 deletions
xt_and_gdt_config_template.txt
0 → 100644
+
156
−
0
View file @
00c7c3d6
# THIS FILE IS AUTOGENERATED -- DO NOT EDIT #
# Edit and Re-run .ci/gitlab/config_template.py instead #
stages:
- sanity
- images
{%- for kind in kinds %}
- {{kind}}
{%- endfor %}
- python
variables:
GIT_SUBMODULE_STRATEGY: recursive
TRAVIS_BRANCH: ${CI_COMMIT_REF_NAME}
TRAVIS_COMMIT: ${CI_COMMIT_SHA}
CCACHE_BASEDIR: ${CI_PROJECT_DIR}
CCACHE_DIR: "${CI_PROJECT_DIR}/.ccache"
CCACHE_COMPILERCHECK: content
CCACHE_COMPRESS: "true"
PYTEST_ADDOPTS: "-s"
.image_builder:
tags:
- docker-in-docker
- long execution time
stage: images
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^staging.*/'
when: never
- when: on_success
retry:
max: 2
when:
- always
image: harbor.uni-muenster.de/proxy-docker/library/docker:19.03.12
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
IMAGE: ${CI_REGISTRY_IMAGE}/ci_testing_${CI_IMAGE}:${CI_COMMIT_SHORT_SHA}
before_script:
- |
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
apk --update add py3-pip openssh-client rsync git file bash python3 curl
pip3 install -U docker jinja2 docopt
export BASEIMAGE="${MY_MODULE}-testing_${CI_IMAGE}:${CI_COMMIT_REF_NAME/\//_}"
# get image with fallback to master branch of the super repo
docker pull ${BASE_PROJECT}/${BASEIMAGE} || export BASEIMAGE="${MY_MODULE}-testing_${CI_IMAGE}:master"
docker pull ${BASE_PROJECT}/${BASEIMAGE}
script:
- |
git submodule update --init --recursive
docker build --build-arg BASE=${BASEIMAGE} -t ${IMAGE} -f .ci/gitlab/Dockerfile .
docker push ${IMAGE}
services:
- name: harbor.uni-muenster.de/proxy-docker/library/docker:dind
alias: docker
environment:
name: unsafe
.subdir-test:
tags:
- long execution time
stage: test
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^staging.*/'
when: never
- when: on_success
retry:
max: 2
when:
- always
image: ${CI_REGISTRY_IMAGE}/ci_testing_${CI_IMAGE}:${CI_COMMIT_SHORT_SHA}
cache:
key: "$CI_JOB_NAME"
paths:
- .ccache
before_script:
- |
mkdir /home/dune-ci/testresults && chmod -R 777 /home/dune-ci/testresults
[[ -f ./.gitsuper ]] && echo "Please remove .gitsuper from the repo" && exit 1
ccache --zero-stats || true
after_script:
- ccache --show-stats
artifacts:
reports:
junit: '/home/dune-ci/testresults/*xml'
environment:
name: unsafe
.pre-commit:
stage: sanity
image: "python:3.9"
cache:
paths:
- ${CI_PROJECT_DIR}/.cache/pre-commit
variables:
PRECOMMIT: "pre-commit run --all"
before_script:
- pip install pre-commit
- pre-commit install --install-hooks
format_check:
extends: .pre-commit
script:
- ${PRECOMMIT} clang-format
- ${PRECOMMIT} yapf
- ${PRECOMMIT} trailing-whitespace
lint:
extends: .pre-commit
script:
- ${PRECOMMIT} check-added-large-files
#- ${PRECOMMIT} flake8 disabled for now, finds lots of issue
- ${PRECOMMIT} debug-statements
- ${PRECOMMIT} check-yaml
{% for image in images -%}
{{ image }}:
extends: .image_builder
variables:
CI_IMAGE: {{ image }}
{% endfor %}
{% for image, subdir, kind in matrix %}
{{subdir}} {{ image[image.find('debian')+1+6:] }} {{kind}}:
extends: .subdir-test
variables:
CI_IMAGE: {{ image }}
TESTS_MODULE_SUBDIR: {{ subdir }}
{%- if 'cpp' in kind %}
tags:
- dustin
{%- endif %}
stage: {{kind}}
needs: ["{{image}}"]
script:
{%- if 'cpp' in kind and 'functions' in subdir %}
- ccache --max-size 10G
{%- endif %}
- /home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_{{kind}}.bash
{% endfor %}
{% for image in images %}
{{ image[image.find('debian')+1+6:] }} python:
extends: .subdir-test
variables:
CI_IMAGE: {{ image }}
tags:
- dustin
stage: python
needs: ["{{image}}"]
script:
- /home/dune-ci/src/${MY_MODULE}/.ci/shared/scripts/test_python.bash
{% endfor %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment