language: python
dist: trusty
python:
  - "3.5"

before_install:
  - npm install eslint stylelint@8.2.0 stylelint-config-wikimedia

# command to install dependencies
install: 
  - pip install -r requirements.txt
  - python setup.py install
  - pip install codecov
  - pip install flake8

script:
  - flake8 . --ignore=E722
  - coverage run --source wikilabels -m pytest -m "not nottravis"
  - timeout --preserve-status 8s wikilabels dev_server
  - ./node_modules/.bin/eslint .
  - ./node_modules/.bin/stylelint "wikilabels/wsgi/static/css/*.css"

after_success:
  - coverage report
  - codecov

notifications:
  irc:
    channels:
      - "chat.freenode.net#wikimedia-ai"
    on_success: change
    on_failure: change
    template:
      - "%{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} %{build_url}"

language: python
dist: trusty
python:
  - "3.5"

before_install:
  - npm install eslint stylelint@8.2.0 stylelint-config-wikimedia

# command to install dependencies
install: 
  - pip install -r requirements.txt
  - python setup.py install
  - pip install codecov pytest-cov flake8

script:
  - flake8 . --ignore=E722
  - timeout --preserve-status 8s wikilabels dev_server
  - ./node_modules/.bin/eslint .
  - ./node_modules/.bin/stylelint "wikilabels/wsgi/static/css/*.css"
  - pytest --cov=wikilabels -m "not nottravis"

after_success:
  - codecov

notifications:
  irc:
    channels:
      - "chat.freenode.net#wikimedia-ai"
    on_success: change
    on_failure: change
    template:
      - "%{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} %{build_url}"

Use pytest-cov for proper coverage report
Use pytest-cov for proper coverage report

Bug: T179507
