mirror of https://gitlab.com/litecord/litecord.git
ci: use tox
This commit is contained in:
parent
22f5af9887
commit
b7343e73ab
|
|
@ -14,14 +14,10 @@ cache:
|
|||
tests:
|
||||
before_script:
|
||||
- python -V
|
||||
- apk --update add --no-cache build-base gcc libgcc libffi-dev openssl-dev git postgresql-client jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev freetype-dev gifsicle
|
||||
- pip3 install pipenv wheel tox
|
||||
- pipenv install --dev
|
||||
- time apk --update add --no-cache build-base gcc libgcc libffi-dev openssl-dev git postgresql-client jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev freetype-dev gifsicle
|
||||
- time pip3 install poetry wheel tox
|
||||
- time poetry install
|
||||
script:
|
||||
- ls
|
||||
- cp config.ci.py config.py
|
||||
- pipenv --venv
|
||||
- pipenv run ./manage.py migrate
|
||||
- pipenv run black --check litecord run.py tests manage
|
||||
- pipenv run flake8 litecord run.py tests manage
|
||||
- pipenv run pytest tests
|
||||
- time tox
|
||||
|
|
|
|||
Loading…
Reference in New Issue