Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thies
uffd2
Commits
17b10ae9
Commit
17b10ae9
authored
2 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Run CI tests and build jobs simultaneously
parent
8261b723
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-0
9 additions, 0 deletions
.gitlab-ci.yml
with
9 additions
and
0 deletions
.gitlab-ci.yml
+
9
−
0
View file @
17b10ae9
...
...
@@ -42,17 +42,20 @@ build:apt:
db_migrations_updated
:
stage
:
test
needs
:
[]
script
:
-
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'
test_db_migrations:sqlite
:
stage
:
test
needs
:
[]
script
:
-
python3 check_migrations.py sqlite
test_db_migrations:mysql
:
stage
:
test
needs
:
[]
script
:
-
service mysql start
-
python3 check_migrations.py mysql
...
...
@@ -60,6 +63,7 @@ test_db_migrations:mysql:
linter:buster
:
image
:
registry.git.cccv.de/uffd/docker-images/buster
stage
:
test
needs
:
[]
script
:
-
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
...
...
@@ -73,6 +77,7 @@ linter:buster:
linter:bullseye
:
image
:
registry.git.cccv.de/uffd/docker-images/bullseye
stage
:
test
needs
:
[]
script
:
-
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
...
...
@@ -86,6 +91,7 @@ linter:bullseye:
unittests:buster
:
image
:
registry.git.cccv.de/uffd/docker-images/buster
stage
:
test
needs
:
[]
script
:
-
python3-coverage run --include 'uffd/*.py' -m pytest --junitxml=report.xml || touch failed
-
python3-coverage report -m
...
...
@@ -108,6 +114,7 @@ unittests:buster:
unittests:bullseye
:
image
:
registry.git.cccv.de/uffd/docker-images/bullseye
stage
:
test
needs
:
[]
script
:
-
python3 -m pytest --junitxml=report.xml
artifacts
:
...
...
@@ -117,6 +124,7 @@ unittests:bullseye:
html5validator
:
stage
:
test
needs
:
[]
script
:
-
rm -rf pages
-
mkdir -p pages
...
...
@@ -132,6 +140,7 @@ html5validator:
.trans
:
stage
:
test
needs
:
[]
script
:
-
./update_translations.sh $TRANSLATION_LANGUAGE
coverage
:
'
/^TOTAL.*\s+(\d+\%)$/'
...
...
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