Skip to content
Snippets Groups Projects
Commit 17b10ae9 authored by Julian's avatar Julian
Browse files

Run CI tests and build jobs simultaneously

parent 8261b723
Branches
No related tags found
No related merge requests found
...@@ -42,17 +42,20 @@ build:apt: ...@@ -42,17 +42,20 @@ build:apt:
db_migrations_updated: db_migrations_updated:
stage: test stage: test
needs: []
script: script:
- FLASK_APP=uffd FLASK_ENV=testing flask db upgrade - FLASK_APP=uffd FLASK_ENV=testing flask db upgrade
- FLASK_APP=uffd FLASK_ENV=testing flask db migrate 2>&1 | grep -q 'No changes in schema detected' - FLASK_APP=uffd FLASK_ENV=testing flask db migrate 2>&1 | grep -q 'No changes in schema detected'
test_db_migrations:sqlite: test_db_migrations:sqlite:
stage: test stage: test
needs: []
script: script:
- python3 check_migrations.py sqlite - python3 check_migrations.py sqlite
test_db_migrations:mysql: test_db_migrations:mysql:
stage: test stage: test
needs: []
script: script:
- service mysql start - service mysql start
- python3 check_migrations.py mysql - python3 check_migrations.py mysql
...@@ -60,6 +63,7 @@ test_db_migrations:mysql: ...@@ -60,6 +63,7 @@ test_db_migrations:mysql:
linter:buster: linter:buster:
image: registry.git.cccv.de/uffd/docker-images/buster image: registry.git.cccv.de/uffd/docker-images/buster
stage: test stage: test
needs: []
script: script:
- pip3 install $PYLINT_PIN pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages! - pip3 install $PYLINT_PIN pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages!
- python3 -m pylint --output-format=pylint_gitlab.GitlabCodeClimateReporter:codeclimate.json,pylint_gitlab.GitlabPagesHtmlReporter:pylint.html,colorized uffd - python3 -m pylint --output-format=pylint_gitlab.GitlabCodeClimateReporter:codeclimate.json,pylint_gitlab.GitlabPagesHtmlReporter:pylint.html,colorized uffd
...@@ -73,6 +77,7 @@ linter:buster: ...@@ -73,6 +77,7 @@ linter:buster:
linter:bullseye: linter:bullseye:
image: registry.git.cccv.de/uffd/docker-images/bullseye image: registry.git.cccv.de/uffd/docker-images/bullseye
stage: test stage: test
needs: []
script: script:
- pip3 install $PYLINT_PIN pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages! - pip3 install $PYLINT_PIN pylint-gitlab pylint-flask-sqlalchemy # this force-updates jinja2 and some other packages!
- python3 -m pylint --output-format=pylint_gitlab.GitlabCodeClimateReporter:codeclimate.json,pylint_gitlab.GitlabPagesHtmlReporter:pylint.html,colorized uffd - python3 -m pylint --output-format=pylint_gitlab.GitlabCodeClimateReporter:codeclimate.json,pylint_gitlab.GitlabPagesHtmlReporter:pylint.html,colorized uffd
...@@ -86,6 +91,7 @@ linter:bullseye: ...@@ -86,6 +91,7 @@ linter:bullseye:
unittests:buster: unittests:buster:
image: registry.git.cccv.de/uffd/docker-images/buster image: registry.git.cccv.de/uffd/docker-images/buster
stage: test stage: test
needs: []
script: script:
- python3-coverage run --include 'uffd/*.py' -m pytest --junitxml=report.xml || touch failed - python3-coverage run --include 'uffd/*.py' -m pytest --junitxml=report.xml || touch failed
- python3-coverage report -m - python3-coverage report -m
...@@ -108,6 +114,7 @@ unittests:buster: ...@@ -108,6 +114,7 @@ unittests:buster:
unittests:bullseye: unittests:bullseye:
image: registry.git.cccv.de/uffd/docker-images/bullseye image: registry.git.cccv.de/uffd/docker-images/bullseye
stage: test stage: test
needs: []
script: script:
- python3 -m pytest --junitxml=report.xml - python3 -m pytest --junitxml=report.xml
artifacts: artifacts:
...@@ -117,6 +124,7 @@ unittests:bullseye: ...@@ -117,6 +124,7 @@ unittests:bullseye:
html5validator: html5validator:
stage: test stage: test
needs: []
script: script:
- rm -rf pages - rm -rf pages
- mkdir -p pages - mkdir -p pages
...@@ -132,6 +140,7 @@ html5validator: ...@@ -132,6 +140,7 @@ html5validator:
.trans: .trans:
stage: test stage: test
needs: []
script: script:
- ./update_translations.sh $TRANSLATION_LANGUAGE - ./update_translations.sh $TRANSLATION_LANGUAGE
coverage: '/^TOTAL.*\s+(\d+\%)$/' coverage: '/^TOTAL.*\s+(\d+\%)$/'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment