mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-24 01:57:32 +01:00
e3416574fb
The test output currently freezes while the tests are running on Drone. Then, suddenly, all the test output appears when it's done. I assume this has got something to do with python buffering stdout, this commit disables that.
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
pipeline:
|
|
flake8:
|
|
image: python:3.5
|
|
commands:
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install flake8
|
|
- flake8 wagtail
|
|
isort:
|
|
image: python:3.5
|
|
commands:
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install wheel
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing,docs]
|
|
- 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,docs]
|
|
- 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
|