language: python
# Enable 3.7 without globally enabling sudo and dist: xenial for other build
# jobs (see https://github.com/travis-ci/travis-ci/issues/9815)
matrix:
  include:
    - python: 3.6
    - python: 3.7
      dist: xenial
      sudo: true
env:
  - TRAVIS=yes
before_install:
  - wget http://repo.continuum.io/miniconda/Miniconda3-4.3.31-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=/home/travis/miniconda3/bin:$PATH
  - conda config --set always_yes yes --set changeps1 no
  - conda install -q --yes -c r rpy2 r-randomforest tzlocal
  - conda install -q python=$TRAVIS_PYTHON_VERSION --file requirements.txt
  - conda update -q conda
  - pip install coveralls
  - travis_retry python setup.py dev
script:
  - travis_wait py.test --runslow
deploy:
  - provider: script
    script: conda_recipe/pypi_upload.sh
    skip_cleanup: true
    on:
      repo: ottogroup/palladium
      tags: true
  - provider: script
    script: conda_recipe/conda_upload.sh
    skip_cleanup: true
    on:
      repo: ottogroup/palladium
      tags: true
after_success:
  - coveralls
cache:
  - apt
  - pip


language: python
# Enable 3.7 without globally enabling sudo and dist: xenial for other build
# jobs (see https://github.com/travis-ci/travis-ci/issues/9815)
matrix:
  include:
    - python: 3.6
    - python: 3.7
      dist: xenial
      sudo: true
env:
  - TRAVIS=yes
before_install:
  - pip install -U pip && pip --version
  - wget https://repo.anaconda.com/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=/home/travis/miniconda3/bin:$PATH
  - conda config --set always_yes yes --set changeps1 no
  - conda install -q --yes -c r rpy2 r-randomforest tzlocal
  - conda install -q python=$TRAVIS_PYTHON_VERSION --file requirements.txt
  - conda update -q conda
  - pip install coveralls
install:
  - pip install -r requirements.txt
  - pip install -e .
  - python setup.py dev
script:
  - travis_wait py.test --runslow
deploy:
  - provider: script
    script: conda_recipe/pypi_upload.sh
    skip_cleanup: true
    on:
      repo: ottogroup/palladium
      tags: true
  - provider: script
    script: conda_recipe/conda_upload.sh
    skip_cleanup: true
    on:
      repo: ottogroup/palladium
      tags: true
after_success:
  - coveralls
cache:
  - apt
  - pip


Update to use latest pip and Miniconda versions
Travis: Update to use latest pip and Miniconda versions

Also, improve the installation sequence: We now run "python setup.py
dev" after installing requirements.txt, which avoids double
installation of dependencies.
