machine:
  python:
    version: 3.6.1
  node:
    version: 8.9.3

dependencies:
  pre:
    - pip install -e .[testing]

test:
  override:
    - flake8 wagtail
    - isort --check-only --diff --recursive wagtail
    - npm run lint:js
    - npm run lint:css
    - python -u runtests.py
    - npm run test:unit:coverage -- --runInBand
    - npm run dist
  post:
    - bash <(curl -s https://codecov.io/bash) -F frontend
