language: python
sudo: true
python:
  - "3.5"
addons:
  apt:
    packages:
    - g++
    - gfortran
    - libblas-dev
    - liblapack-dev
    - libopenblas-dev
    - python3-dev
    - enchant
    - redis-server

before_install:
  - npm install -g eslint
# Install packages
install:
  - pip install pip --upgrade
  - pip install wheel
  - travis_wait pip install -r requirements.txt || date
  - travis_wait pip install -r test-requirements.txt || date
  - python -m nltk.downloader stopwords
  - pip install codecov
  - sudo service redis-server start
script:
  - flake8 .
  - eslint .
  - ./utility applications.wsgi --config ./config/celery-test/ &
  - ./utility applications.celery --config ./config/celery-test/ &
  - sleep 5
  - ./utility test_api http://localhost:8080 --debug
  - coverage run --source ores -m py.test
after_success:
  - coverage report
  - codecov
group: stable
dist: trusty
os: linux
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
sudo: true
python:
  - "3.5"
addons:
  apt:
    packages:
    - g++
    - gfortran
    - libblas-dev
    - liblapack-dev
    - libopenblas-dev
    - python3-dev
    - enchant
    - redis-server

before_install:
  - npm install -g eslint
# Install packages
install:
  - pip install pip --upgrade
  - pip install wheel
  - travis_wait pip install -r requirements.txt || date
  - travis_wait pip install -r test-requirements.txt || date
  - python -m nltk.downloader stopwords
  - pip install codecov pytest-cov
  - sudo service redis-server start
script:
  - flake8 .
  - eslint .
  - ./utility applications.wsgi --config ./config/celery-test/ &
  - ./utility applications.celery --config ./config/celery-test/ &
  - sleep 5
  - ./utility test_api http://localhost:8080 --debug
  - py.test --cov=ores
after_success:
  - codecov
group: stable
dist: trusty
os: linux
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
