...
 
Commits (5)
......@@ -4,14 +4,11 @@ image: python:3.7
variables:
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
PIPENV_CACHE_DIR: $CI_PROJECT_DIR/.cache/pipenv
PIPENV_VENV_IN_PROJECT: "true"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- $PIP_CACHE_DIR
- $PIPENV_CACHE_DIR
- .venv/
stages:
......@@ -20,10 +17,13 @@ stages:
- deploy
before_script:
- python -V
- python -V
# - apk update
# - apk add --no-cache --update python3-dev gcc build-base make git
- make setup_env
- pip install poetry
- poetry config virtualenvs.create false
- poetry install
lint:
stage: test
script:
......
......@@ -14,21 +14,23 @@ clean:
rm -rf dist/ build/ .egg alexapy.egg-info/
init: setup_env
poetry install
lint: flake8 docstyle pylint typing
lint: flake8 docstyle pylint typing black
flake8:
poetry run flake8 alexapy
docstyle:
poetry run pydocstyle alexapy
pylint:
poetry run pylint alexapy
black:
poetry run black alexapy
# publish:
# deprecated by semantic-release
# poetry run python setup.py sdist bdist_wheel
# poetry run twine upload dist/*
# rm -rf dist/ build/ .egg alexapy.egg-info/
setup_env:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
source $HOME/.poetry/env
pip install poetry
test:
#Not implemented yet
#poetry run py.test
......