language: python
matrix:
  include:
    - python: "2.7"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "2.7"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS="fast,icu"
      addons:
        apt:
          packages:
          - libicu-dev
          - language-pack-de
          - language-pack-en
    - python: "3.4"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "3.5"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "3.6"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "3.6"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS="fast,icu"
      addons:
        apt:
          packages:
          - libicu-dev
          - language-pack-de
          - language-pack-en
    - python: "3.7"
      dist: xenial
      sudo: true
      env: WITH_EXTRAS=""
    - python: "3.7"
      dist: xenial
      sudo: true
      env: WITH_EXTRAS="fast,icu"
      addons:
        apt:
          packages:
          - libicu-dev
          - language-pack-de
          - language-pack-en

install:
- pip install -U pip
- pip install tox-travis codacy-coverage codecov

script:
- tox

after_success:
- coverage xml
- python-codacy-coverage -r coverage.xml
- codecov

language: python
matrix:
  include:
    - python: "2.7"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "2.7"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS="fast,icu"
      addons:
        apt:
          packages:
          - libicu-dev
          - language-pack-de
          - language-pack-en
    - python: "3.4"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "3.5"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "3.6"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS=""
    - python: "3.6"
      dist: trusty
      sudo: false
      env: WITH_EXTRAS="fast,icu"
      addons:
        apt:
          packages:
          - libicu-dev
          - language-pack-de
          - language-pack-en
    - python: "3.7"
      dist: xenial
      sudo: true
      env: WITH_EXTRAS=""

install:
- pip install -U pip
- pip install tox-travis codacy-coverage codecov

script:
- tox

after_success:
- coverage xml
- python-codacy-coverage -r coverage.xml
- codecov

Remove extras testing from 3.7.
Remove extras testing from 3.7.

This is because fastnumbers has a python 3.7 bug, so
there is no point using it for the tests if it fails.
A future commit will revert this change.
