sudo: false
language: python
# command to install dependencies
install: "make"
# command to run tests
script:
  - |
    if [[ "$TRAVIS_PYTHON_VERSION" != "2.6" ]] ; then make test-readme; fi
  - make ci
cache: pip
jobs:
  include:
    - stage: test
      script:
        - make test-readme
        - make ci
      python: '2.7'
    - stage: test
      script:
        - make test-readme
        - make ci
      python: '3.4'
    - stage: test
      script:
        - make test-readme
        - make ci
      python: '3.5'
    - stage: test
      script:
        - make test-readme
        - make ci
      python: '3.6'
    - stage: test
      script:
        - make test-readme
        - make ci
      python: '3.7'
      dist: xenial
      sudo: true     
    - stage: coverage
      python: 3.6
      script: codecov
