.drone.yml 937 B

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