0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-25 13:10:14 +01:00
wagtail/.drone.yml
Karl Hobley 986749d309 Flake8 plugins (#3411)
* Installed flake8-blind-except plugin

* Installed flake8-print plugin

* Combined flake8 and isort in Drone

flake8 needs to install a couple more dependencies now so I think it
makes sense to merge these and install testing dependencies in one go.
2017-03-01 12:21:34 +00:00

40 lines
937 B
YAML

pipeline:
lint_python:
image: python:3.5
commands:
- XDG_CACHE_HOME=/drone/pip-cache pip install wheel
- XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing]
- flake8 wagtail
- isort --check-only --diff --recursive wagtail
js:
image: node:4.2.4
commands:
- npm install --quiet
- npm run lint
- npm run test:unit
scss-lint:
image: torchbox/scss-lint
commands:
- scss-lint
unittest:
image: python:3.5
commands:
- XDG_CACHE_HOME=/drone/pip-cache pip install wheel
- XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing]
- python -u runtests.py
cache:
mount:
- node_modules
- /drone/pip-cache
notify:
slack:
webhook_url: https://hooks.slack.com/services/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
channel: builds
username: drone
when:
success: true
failure: true
change: true