.drone.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. pipeline:
  2. flake8:
  3. image: python:3.5
  4. commands:
  5. - XDG_CACHE_HOME=/drone/pip-cache pip install flake8
  6. - flake8 wagtail
  7. isort:
  8. image: python:3.5
  9. commands:
  10. - XDG_CACHE_HOME=/drone/pip-cache pip install wheel
  11. - XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing,docs]
  12. - isort --check-only --diff --recursive wagtail
  13. js:
  14. image: node:4.2.4
  15. commands:
  16. - npm install --quiet
  17. - npm run lint
  18. - npm run test:unit
  19. scss-lint:
  20. image: torchbox/scss-lint
  21. commands:
  22. - scss-lint
  23. unittest:
  24. image: python:3.5
  25. commands:
  26. - XDG_CACHE_HOME=/drone/pip-cache pip install wheel
  27. - XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing,docs]
  28. - python runtests.py
  29. cache:
  30. mount:
  31. - node_modules
  32. - /drone/pip-cache
  33. notify:
  34. slack:
  35. webhook_url: https://hooks.slack.com/services/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
  36. channel: builds
  37. username: drone
  38. when:
  39. success: true
  40. failure: true
  41. change: true