Last active
March 26, 2021 08:59
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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