mirror of https://gitlab.com/litecord/litecord.git
tox: attempt to run migrations inside tox env
This commit is contained in:
parent
e5609f3161
commit
d58f1aaad6
|
|
@ -16,10 +16,8 @@ tests:
|
||||||
- python -V
|
- python -V
|
||||||
- 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 rust cargo
|
- 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 rust cargo
|
||||||
- time pip3 install --upgrade pip
|
- time pip3 install --upgrade pip
|
||||||
- time pip3 install wheel tox poetry
|
- time pip3 install wheel tox
|
||||||
script:
|
script:
|
||||||
- ls
|
- ls
|
||||||
- cp config.ci.py config.py
|
- cp config.ci.py config.py
|
||||||
- poetry install
|
|
||||||
- poetry run ./manage.py migrate
|
|
||||||
- time tox
|
- time tox
|
||||||
|
|
|
||||||
1
tox.ini
1
tox.ini
|
|
@ -13,6 +13,7 @@ deps =
|
||||||
mypy==0.910
|
mypy==0.910
|
||||||
pytest-instafail==0.4.2
|
pytest-instafail==0.4.2
|
||||||
commands =
|
commands =
|
||||||
|
python3 ./manage.py migrate
|
||||||
black --check litecord run.py tests manage
|
black --check litecord run.py tests manage
|
||||||
flake8 litecord run.py tests manage
|
flake8 litecord run.py tests manage
|
||||||
pytest {posargs:tests}
|
pytest {posargs:tests}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue