Commit 7b6b5a04 authored by Benjamin Winger's avatar Benjamin Winger

Moved install phase to separate build stage to ensure that portmod and its...

Moved install phase to separate build stage to ensure that portmod and its dependencies have been installed prior to the tests being run
parent 6ce8b8cc
Pipeline #60800465 passed with stages
in 7 minutes and 14 seconds
......@@ -15,6 +15,10 @@ cache:
- .cache/pip
- .venv/
stages:
- build
- test
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
......@@ -22,34 +26,38 @@ before_script:
- source .venv/bin/activate
inquisitor:
stage: test
script:
- python setup.py install
- mwmerge.py --sync
- cd ~/.local/share/portmod/openmw
- inquisitor.py
install:
stage: build
script:
- pip install -r requirements.txt
- python setup.py install
flake8:
stage: test
script:
- pip install flake8
- flake8 --exclude .venv --max-line-length=88
pytest:
stage: test
script:
- pip install pytest
- pip install -r requirements.txt
- pytest
#mypy:
# stage: test
# script:
# - pip install mypy
# - MYPYPATH=.venv/lib/python3.6/site-packages mypy bin/*.py portmod
black:
stage: test
script:
- pip install black
- black --check **/*.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment