2013-08-12 22:06:28 +02:00
|
|
|
# Config file for automatic testing at travis-ci.org
|
|
|
|
|
|
|
|
language: python
|
2015-10-19 00:06:32 +02:00
|
|
|
sudo: false
|
2013-08-12 22:06:28 +02:00
|
|
|
|
|
|
|
python:
|
|
|
|
- "2.7"
|
2015-10-19 03:37:14 +02:00
|
|
|
- "3.5"
|
2017-02-27 02:15:42 +01:00
|
|
|
- "3.6"
|
2019-08-28 14:08:49 +02:00
|
|
|
- "3.7"
|
2018-09-04 04:02:56 +02:00
|
|
|
|
|
|
|
# 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)
|
2013-08-12 22:06:28 +02:00
|
|
|
|
|
|
|
install:
|
2017-03-15 17:19:38 +01:00
|
|
|
- "python setup.py sdist"
|
2017-03-15 17:34:59 +01:00
|
|
|
- "mkdir tmp"
|
2018-09-03 15:51:01 +02:00
|
|
|
- "ln ci/* tmp"
|
2017-03-15 17:46:41 +01:00
|
|
|
- "cd tmp"
|
2017-03-15 17:50:50 +01:00
|
|
|
- "pip install --upgrade pip"
|
|
|
|
- "pip install $(echo ../dist/skyfield-*.tar.gz)'[tests]'"
|
|
|
|
- "pip install https://github.com/brandon-rhodes/assay/archive/master.zip"
|
2020-01-12 21:37:18 +01:00
|
|
|
- "if [[ $TRAVIS_PYTHON_VERSION < 3.7 ]] ; then pip install numpy==1.11.3 scipy==1.2.2 pandas==0.23.4 unittest2 ; else pip install pandas ; fi"
|
2019-07-22 05:43:29 +02:00
|
|
|
- "python -c 'import pandas'"
|
2013-08-12 22:06:28 +02:00
|
|
|
|
|
|
|
script:
|
2019-12-20 15:34:44 +01:00
|
|
|
- "../test-code.sh"
|
2020-07-24 06:18:54 +02:00
|
|
|
- "if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]] ; then pip install astropy==3.0.1 matplotlib==3.3.0 numpy==1.15.4 scipy==1.2.2 sphinx==1.7.2 spktype21 ; cd .. ; ./test-docs.sh ; fi"
|
2020-06-07 18:45:29 +02:00
|
|
|
- "if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]] ; then pip install pyflakes ; pyflakes $(find skyfield/ -name '*.py') ; fi"
|