# Config file for automatic testing at travis-ci.org

language: python
sudo: false

python:
  - "2.7"
  - "3.5"
  - "3.6"
  - "3.7"

# matrix:
#   include:
#     - python: "3.7"
#       dist: xenial    # required for Python 3.7 (travis-ci/travis-ci#9069)
#       sudo: required  # required for Python 3.7 (travis-ci/travis-ci#9069)

install:
  - "python setup.py sdist"
  - "mkdir tmp"
  - "ln ci/* tmp"
  - "cd tmp"
  - "pip install --upgrade pip"
  - "pip install $(echo ../dist/skyfield-*.tar.gz)'[tests]'"
  - "pip install https://github.com/brandon-rhodes/assay/archive/master.zip"
  - "if [[ $TRAVIS_PYTHON_VERSION < 3.7 ]] ; pip install numpy==1.11.3 pandas==0.23.4 unittest2 ; else pip install pandas ; fi"
  - "python -c 'import pandas'"

script:
  - "assay --batch skyfield.tests"
  - "if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]] ; then pip install astropy==3.0.1 matplotlib==2.2.3 numpy==1.14.2 sphinx==1.7.2 ; cd .. ; ./test-docs.sh ; fi"

# Config file for automatic testing at travis-ci.org

language: python
sudo: false

python:
  - "2.7"
  - "3.5"
  - "3.6"
  - "3.7"

# matrix:
#   include:
#     - python: "3.7"
#       dist: xenial    # required for Python 3.7 (travis-ci/travis-ci#9069)
#       sudo: required  # required for Python 3.7 (travis-ci/travis-ci#9069)

install:
  - "python setup.py sdist"
  - "mkdir tmp"
  - "ln ci/* tmp"
  - "cd tmp"
  - "pip install --upgrade pip"
  - "pip install $(echo ../dist/skyfield-*.tar.gz)'[tests]'"
  - "pip install https://github.com/brandon-rhodes/assay/archive/master.zip"
  - "if [[ $TRAVIS_PYTHON_VERSION < 3.7 ]] ; then pip install numpy==1.11.3 pandas==0.23.4 unittest2 ; else pip install pandas ; fi"
  - "python -c 'import pandas'"

script:
  - "assay --batch skyfield.tests"
  - "if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]] ; then pip install astropy==3.0.1 matplotlib==2.2.3 numpy==1.14.2 sphinx==1.7.2 ; cd .. ; ./test-docs.sh ; fi"

Fix shell script syntax under Travis CI
Fix shell script syntax under Travis CI
