language: python
python:
  # https://github.com/travis-ci/travis-ci/issues/2219#issuecomment-41804942
  # https://snarky.ca/how-to-use-your-project-travis-to-help-test-python-itself/
  - "2.7"
  - "3.5"
  - "3.5-dev"
  - "3.6"
  - "3.6-dev"
  - "3.7"
  - "3.7-dev"
  - "3.8"
  - "3.8-dev"
  - "nightly"
before_install:
  # install dependencies for NumPy
  - sudo apt-get update -qq
  - sudo apt-get install -qq gfortran libatlas-base-dev
  - sudo apt-get install -qq python-numpy
install:
  - pip install -U pip wheel setuptools
  - pip install -U pytest pytest-cov
  - python setup.py install
  - pip install -U tinysegmenter jieba konlpy
  - python -c "import nltk; nltk.download('punkt')"
script: pytest tests

language: python
python:
  # https://github.com/travis-ci/travis-ci/issues/2219#issuecomment-41804942
  # https://snarky.ca/how-to-use-your-project-travis-to-help-test-python-itself/
  - "2.7"
  - "3.5"
  - "3.5-dev"
  - "3.6"
  - "3.6-dev"
  - "3.7"
  - "3.7-dev"
  - "3.8"
  - "3.8-dev"
  - "nightly"

before_install:
  # install dependencies for NumPy
  - sudo apt-get update -qq
  - sudo apt-get install -qq gfortran libatlas-base-dev
  - sudo apt-get install -qq python-numpy

install:
  - pip install -U pip wheel setuptools
  - pip install -U pytest codecov pytest-cov
  - python setup.py install
  - pip install -U tinysegmenter jieba konlpy
  - python -c "import nltk; nltk.download('punkt')"

script: pytest tests

after_success:
  - codecov

Add codecov service to tests
Add codecov service to tests