Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pretix Matrix Inviter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
Pretix Matrix Inviter
Commits
a67eecec
Commit
a67eecec
authored
3 years ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
Update gitlab-ci.yml
parent
623275b2
No related branches found
No related tags found
No related merge requests found
Pipeline
#63965
passed
3 years ago
Stage: linting
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+42
-47
42 additions, 47 deletions
.gitlab-ci.yml
with
42 additions
and
47 deletions
.gitlab-ci.yml
+
42
−
47
View file @
a67eecec
test
:
script
:
-
cp /keys/.pypirc ~/.pypirc
-
virtualenv env
-
source env/bin/activate
-
XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools pytest pytest-django coverage
-
XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix&subdirectory=src"
-
python setup.py develop
-
make
-
coverage run -m py.test tests
-
coverage report
tags
:
-
python3
style
:
---
stages
:
-
linting
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
cache
:
paths
:
-
.cache
docformatter
:
stage
:
linting
image
:
python:3
before_script
:
-
pip3 install -U pip docformatter
script
:
-
cp /keys/.pypirc ~/.pypirc
-
virtualenv env
-
source env/bin/activate
-
XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools isort docformatter black flake8 check-manifest
-
XDG_CACHE_HOME=/cache pip3 install -U "git+https://github.com/pretix/pretix.git@master#egg=pretix&subdirectory=src"
-
python setup.py develop
-
docformatter --check -r .
black
:
stage
:
linting
image
:
python:3
before_script
:
-
pip3 install -U pip black
script
:
-
black --check .
isort
:
stage
:
linting
image
:
python:3
before_script
:
-
pip3 install -U pip isort
script
:
-
isort -c .
-
flake8 .
-
check-manifest .
tags
:
-
python3
pypi
:
flake8
:
stage
:
linting
image
:
python:3
before_script
:
-
pip3 install -U pip flake8
script
:
-
cp /keys/.pypirc ~/.pypirc
-
virtualenv env
-
source env/bin/activate
-
XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools twine check-manifest
-
XDG_CACHE_HOME=/cache pip3 install -U pretix
-
python setup.py develop
-
python setup.py sdist bdist_wheel
-
check-manifest .
-
twine check dist/*
-
twine upload dist/*
tags
:
-
python3
only
:
-
pypi
artifacts
:
paths
:
-
dist/
-
flake8 .
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