language: python
python:
  - "3.6"
  - "3.5"
  - "3.4"
  - "2.7"
env:
  - USE_NUMPY=0
  - USE_NUMPY=1

install:
  - if [[ $USE_NUMPY == 0 ]]; then pip uninstall numpy --yes; fi
  - if [[ $USE_NUMPY == 1 ]]; then pip install numpy; fi  # Don't upgrade if present
  - pip install pytest-cov codecov

script:
  - pip install --no-deps -e .
  - py.test -v --cov=utm

after_success:
  - codecov

deploy:
  provider: pypi
  user: Tobias.Bieniek
  password:
    secure: mVcE9/IJSArULbN+QOTjm9l/J3w3BgZ/uSJ+j4V0w4TUjQFscMZjACO9ZiDNc/W63s2QWDrPsWOCeyNemIIL06MzSnBplhGUkDt4TVAeaACKx2Q9WI7oorvaKxrp503FfiHOTzSrBp59oXaYy08Y9W3nP2Ek5DdIu9Pgz1vjNic=
  on:
    tags: true
    repo: Turbo87/utm

language: python
python:
  - "3.9"
  - "3.8"
  - "3.7"
  - "3.6"
  - "3.5"
  - "3.4"
  - "2.7"
env:
  - USE_NUMPY=0
  - USE_NUMPY=1

install:
  - if [[ $USE_NUMPY == 0 ]]; then pip uninstall numpy --yes; fi
  - if [[ $USE_NUMPY == 1 ]]; then pip install numpy; fi  # Don't upgrade if present
  - pip install pytest-cov codecov

script:
  - pip install --no-deps -e .
  - py.test -v --cov=utm

after_success:
  - codecov

deploy:
  provider: pypi
  user: Tobias.Bieniek
  password:
    secure: mVcE9/IJSArULbN+QOTjm9l/J3w3BgZ/uSJ+j4V0w4TUjQFscMZjACO9ZiDNc/W63s2QWDrPsWOCeyNemIIL06MzSnBplhGUkDt4TVAeaACKx2Q9WI7oorvaKxrp503FfiHOTzSrBp59oXaYy08Y9W3nP2Ek5DdIu9Pgz1vjNic=
  on:
    tags: true
    repo: Turbo87/utm

Add Python 3.7, 3.8. 3.9 CI
Add Python 3.7, 3.8. 3.9 CI
