2017-02-04 15:31:10 +01:00
|
|
|
pipeline:
|
2017-03-01 13:21:34 +01:00
|
|
|
lint_python:
|
2016-02-26 12:58:01 +01:00
|
|
|
image: python:3.5
|
|
|
|
commands:
|
|
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install wheel
|
2017-02-21 14:46:21 +01:00
|
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing]
|
2017-03-01 13:21:34 +01:00
|
|
|
- flake8 wagtail
|
2016-02-26 12:58:01 +01:00
|
|
|
- isort --check-only --diff --recursive wagtail
|
2016-02-24 11:44:14 +01:00
|
|
|
js:
|
2016-02-01 13:28:25 +01:00
|
|
|
image: node:4.2.4
|
2016-01-04 11:28:22 +01:00
|
|
|
commands:
|
2016-02-24 11:44:14 +01:00
|
|
|
- npm install --quiet
|
|
|
|
- npm run lint
|
|
|
|
- npm run test:unit
|
2016-01-04 11:28:22 +01:00
|
|
|
scss-lint:
|
2016-06-20 16:55:12 +02:00
|
|
|
image: torchbox/scss-lint
|
2016-01-04 11:28:22 +01:00
|
|
|
commands:
|
|
|
|
- scss-lint
|
2016-01-27 13:14:40 +01:00
|
|
|
unittest:
|
|
|
|
image: python:3.5
|
|
|
|
commands:
|
|
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install wheel
|
2017-02-21 14:46:21 +01:00
|
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing]
|
2017-02-05 11:34:06 +01:00
|
|
|
- python -u runtests.py
|
2016-01-27 13:14:40 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
mount:
|
2016-02-01 13:28:25 +01:00
|
|
|
- node_modules
|
2016-01-27 13:14:40 +01:00
|
|
|
- /drone/pip-cache
|
2016-02-10 21:27:44 +01:00
|
|
|
|
|
|
|
notify:
|
|
|
|
slack:
|
|
|
|
webhook_url: https://hooks.slack.com/services/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
|
|
|
|
channel: builds
|
|
|
|
username: drone
|
|
|
|
when:
|
|
|
|
success: true
|
|
|
|
failure: true
|
|
|
|
change: true
|