Skip to content

Instantly share code, notes, and snippets.

@Gr1N
Last active March 26, 2021 08:59
Show Gist options
  • Save Gr1N/11f359872fb04790e97f651e6e243d2f to your computer and use it in GitHub Desktop.
Save Gr1N/11f359872fb04790e97f651e6e243d2f to your computer and use it in GitHub Desktop.
Why Drone CI can be interesting for you? Example of Bitbucket Pipelines configuration
definitions:
caches:
poetry-path: /root/.poetry
poetry-venv: /root/.cache/pypoetry/virtualenvs
pipelines:
default:
- step:
name: deps-3.7
image: python:3.7
caches:
- poetry-path
- poetry-venv
script:
- poetry install -vv
- step:
name: deps-3.8
image: python:3.8
caches:
- poetry-path
- poetry-venv
script:
- poetry install -vv
- step:
name: lint-3.8
image: python:3.8
caches:
- poetry-path
- poetry-venv
script:
- poetry run black --check --diff .
- poetry run flake8 .
- poetry run isort --check-only --diff --recursive
- step:
name: test-3.7
image: python:3.7
caches:
- poetry-path
- poetry-venv
script:
- poetry run pytest .
- step:
name: test-3.8
image: python:3.8
caches:
- poetry-path
- poetry-venv
script:
- poetry run pytest .
- step:
name: publish-3.8
image: python:3.8
caches:
- poetry-path
- poetry-venv
script:
- poetry publish --build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment