Commit 51a5a0d3 authored by René Fritze's avatar René Fritze Committed by René Fritze

[ci] adds sanity checks for the CI env as a first stage

parent f225f918
aa2c0dd6968d9c2f782a7fcd02d7f1ea436e111c
b91332bb45ed1950647b572cc01b550f9009d977
......@@ -2,6 +2,7 @@
# Edit and Re-run .ci/gitlab/template.ci.py instead #
stages:
- sanity
- test
- build
- install_checks
......@@ -239,7 +240,7 @@ verify setup.py:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
before_script:
- apk --update add openssh-client rsync git file bash python3
- apk --update add openssh-client rsync git file bash python3 curl
# hotfix for https://github.com/jupyter/repo2docker/issues/755
- pip3 install ruamel.yaml==0.15.100
- pip3 install jinja2 jupyter-repo2docker docker-compose
......@@ -400,5 +401,10 @@ check_wheel 3:
script: devpi install pymor[full]
sanity:
extends: .docker-in-docker
stage: sanity
script: ./.ci/gitlab/ci_sanity_check.bash
# THIS FILE IS AUTOGENERATED -- DO NOT EDIT #
# Edit and Re-run .ci/gitlab/template.ci.py instead #
#!/bin/bash
function docker_tag_exists() {
curl --silent -f -lSL https://hub.docker.com/v2/repositories/$1/tags/$2 > /dev/null
}
PYMOR_ROOT="$(cd "$(dirname ${BASH_SOURCE[0]})" ; cd ../../ ; pwd -P )"
cd "${PYMOR_ROOT}"
set -eux
# make sure CI setup is current
./.ci/gitlab/template.ci.py && git diff --exit-code .ci/gitlab/ci.yml
# check if requirements files are up-to-date
./dependencies.py && git diff --exit-code requirements* pyproject.toml
for py in 3.6 3.7 ; do
docker_tag_exists pymor/testing_py${py} $(cat .ci/CI_IMAGE_TAG)
docker_tag_exists pymor/pypi-mirror_stable_py${py} $(cat .ci/PYPI_MIRROR_TAG)
done
......@@ -15,11 +15,6 @@ COVERAGE_OPTS="--cov=src/pymor --cov-report=xml --memprof-top-n 50 --memprof-cs
set -eux
${SUDO} pip install -U pip
# make sure CI setup is current
./.ci/gitlab/template.ci.py && git diff --exit-code .ci/gitlab/ci.yml
# check if requirements files are up-to-date
./dependencies.py && git diff --exit-code requirements* pyproject.toml
# most of these should be baked into the docker image already
${SUDO} pip install -r requirements.txt
${SUDO} pip install -r requirements-ci.txt
......
......@@ -4,6 +4,7 @@ tpl = '''# THIS FILE IS AUTOGENERATED -- DO NOT EDIT #
# Edit and Re-run .ci/gitlab/template.ci.py instead #
stages:
- sanity
- test
- build
- install_checks
......@@ -162,7 +163,7 @@ verify setup.py:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
before_script:
- apk --update add openssh-client rsync git file bash python3
- apk --update add openssh-client rsync git file bash python3 curl
# hotfix for https://github.com/jupyter/repo2docker/issues/755
- pip3 install ruamel.yaml==0.15.100
- pip3 install jinja2 jupyter-repo2docker docker-compose
......@@ -261,6 +262,11 @@ check_wheel {{loop.index}}:
script: devpi install pymor[full]
{% endfor %}
sanity:
extends: .docker-in-docker
stage: sanity
script: ./.ci/gitlab/ci_sanity_check.bash
# THIS FILE IS AUTOGENERATED -- DO NOT EDIT #
# Edit and Re-run .ci/gitlab/template.ci.py instead #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment