From 8fe58b2e188e06617a9db22f84c63104be0bc3b4 Mon Sep 17 00:00:00 2001 From: Sistason <c3infra@sistason.de> Date: Wed, 13 Apr 2022 21:19:30 +0200 Subject: [PATCH] use ci for everything --- .gitlab-ci.yml | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 45cb027f..24a42255 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,23 +16,34 @@ before_script: - python3 -m coverage --version - echo "${CI_COMMIT_TAG}" | grep -qE "v[0-9]+[.][0-9]+[.][0-9]+.*" && export UFFD_PACKAGE_VERSION="${CI_COMMIT_TAG#v}" || export UFFD_PACKAGE_VERSION="${CI_COMMIT_SHA}" -build_test_instance_path: - image: - name: gcr.io/kaniko-project/executor:debug-v0.24.0 - entrypoint: [""] - stage: build - before_script: - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - script: - - /kaniko/executor --context "$CI_PROJECT_DIR" --dockerfile Dockerfile --destination "${CI_REGISTRY_IMAGE}:test-instance-path" - -test_instance_path: +.test_instance_path: stage: test - image: registry.git.cccv.de/uffd/uffd:test-instance-path + image: python:3.7 + variables: + FLASK_APP: uffd + FLASK_ENV: development before_script: - - python --version - script: - - FLASK_APP=uffd CONFIG_PATH=/etc/uffd/uffd.cfg flask db upgrade + - pip3 install flask==1.1.2 Flask-SQLAlchemy==2.1 qrcode==6.1 fido2==0.5.0 oauthlib==2.1.0 Flask-OAuthlib==0.9.5 \ + Flask-Migrate==2.1.1 Flask-Babel==2.0.0 alembic==1.0.0 argon2-cffi==18.3.0 certifi==2018.8.24 cffi==1.15.0 \ + chardet==3.0.4 click==7.0 cryptography==2.6.1 idna==2.6 itsdangerous==0.24 Jinja2==2.11 MarkupSafe==1.1.0 \ + pyasn1==0.4.2 pycparser==2.19 requests==2.21.0 requests-oauthlib==1.0.0 six==1.12.0 SQLAlchemy==1.2.18 \ + urllib3==1.24.1 Werkzeug==1 python-dateutil==2.7.3 Mako==1.0.7 \ + pyyaml==6.0 uwsgi==2.0.20 + - useradd uffd; mkdir /etc/uffd /usr/share/uffd; echo "SECRET_KEY='foo'" > /etc/uffd/uffd.cfg + - mv uffd /usr/share/uffd/; mv uwsgi.ini /etc/uffd/ + - pybabel compile -d /usr/share/uffd/uffd/translations + - sed -i "s/^plugin/#plugin/g" /etc/uffd/uwsgi.ini + script: + - uwsgi /etc/uffd/uwsgi.ini --http 0.0.0.0:8080 + +test_instance_path_37: + image: python:3.7 +test_instance_path_38: + image: python:3.8 +test_instance_path_39: + image: python:3.9 +test_instance_path_310: + image: python:3.10 .build: stage: build -- GitLab