|
1 | | -sudo: false |
2 | | - |
| 1 | +dist: bionic |
3 | 2 | language: python |
4 | 3 |
|
5 | 4 | env: |
6 | 5 | global: |
7 | 6 | # Doctr deploy key for pydata/pandas-datareader |
8 | 7 | - secure: "iGbOAbBSV5y0TKDh2CifRSk6OpLA9GbEEL/hscHFLSDDUCWcdfvYXda3SWJFWyoQ5QUxSigXWd+ukr4u92d7lmB7m3TWj6BAMNuRpatTgnejLNwLvNeYdvLAxPvx39Cq85frd1Rx1beBLn3h/4wm4Ah+dR5W9NH8+x3OuZMH3Eo=" |
9 | 8 |
|
10 | | - |
11 | 9 | matrix: |
12 | 10 | fast_finish: true |
13 | 11 | include: |
14 | | - - dist: bionic |
15 | | - env: |
16 | | - - PYTHON=2.7 PANDAS=0.19.2 |
17 | | - - dist: bionic |
18 | | - env: |
19 | | - - PYTHON=2.7 PANDAS=0.22 |
20 | | - - dist: bionic |
21 | | - env: |
22 | | - - PYTHON=3.5 PANDAS=0.19.2 |
23 | | - - dist: bionic |
24 | | - env: |
25 | | - - PYTHON=3.5 PANDAS=0.20.3 |
26 | | - - dist: bionic |
27 | | - env: |
28 | | - - PYTHON=3.6 PANDAS=0.23.0 |
29 | | - - dist: bionic |
30 | | - env: |
31 | | - - PYTHON=3.7 PANDAS=0.25 DOCBUILD=true |
| 12 | + - python: 2.7 |
| 13 | + env: PANDAS=0.24 NUMPY=1.16 |
| 14 | + - python: 3.5 |
| 15 | + env: PANDAS=0.21 NUMPY=1.13 |
| 16 | + - python: 3.5 |
| 17 | + env: PANDAS=0.22 NUMPY=1.13 |
| 18 | + - python: 3.6 |
| 19 | + env: PANDAS=0.23 NUMPY=1.14 |
| 20 | + - python: 3.7 |
| 21 | + env: PANDAS=0.25 NUMPY=1.17 DOCBUILD=true |
32 | 22 | # In allow failures |
33 | | - - dist: bionic |
34 | | - env: |
35 | | - - PYTHON=3.6 PANDAS="MASTER" |
| 23 | + - env: PYTHON=3.7 PANDAS="MASTER" |
36 | 24 | allow_failures: |
37 | | - - dist: bionic |
38 | | - env: |
39 | | - - PYTHON=3.6 PANDAS="MASTER" |
| 25 | + - env: PYTHON=3.7 PANDAS="MASTER" |
40 | 26 |
|
41 | 27 | install: |
42 | | - - pip install -qq flake8 |
43 | | - # You may want to periodically update this, although the conda update |
44 | | - # conda line below will keep everything up-to-date. We do this |
45 | | - # conditionally because it saves us some downloading if the version is |
46 | | - # the same. |
47 | | - - if [[ "$PYTHON" == "2.7" ]]; then |
48 | | - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; |
49 | | - else |
50 | | - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; |
51 | | - fi |
52 | | - - bash miniconda.sh -b -p $HOME/miniconda |
53 | | - - export PATH="$HOME/miniconda/bin:$PATH" |
54 | | - - hash -r |
55 | | - - conda config --set always_yes yes --set changeps1 no |
56 | | - - conda config --add channels pandas |
57 | | - - conda update -q conda |
58 | | - # Useful for debugging any issues with conda |
59 | | - - conda info -a |
60 | | - - conda create -q -n test-environment python=$PYTHON coverage setuptools html5lib lxml pytest pytest-cov wrapt |
61 | | - - source activate test-environment |
62 | | - - if [[ "$PANDAS" == "MASTER" ]]; then |
63 | | - conda install numpy pytz python-dateutil; |
64 | | - PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"; |
65 | | - pip install --pre --upgrade --timeout=60 -f $PRE_WHEELS pandas; |
66 | | - else |
67 | | - conda install pandas=$PANDAS; |
68 | | - fi |
69 | | - - if [[ $DOCBUILD ]]; then |
70 | | - conda install sphinx ipython matplotlib; |
71 | | - pip install sphinx_rtd_theme doctr; |
72 | | - fi |
73 | | - - pip install pip --upgrade |
74 | | - - pip install codecov coveralls beautifulsoup4 |
75 | | - - conda list |
| 28 | + - source ci/pypi-install.sh; |
| 29 | + - pip install codecov coveralls beautifulsoup4 flake8 |
| 30 | + - pip list |
76 | 31 | - python setup.py install |
77 | 32 |
|
78 | 33 | script: |
79 | | - - export ENIGMA_API_KEY=$ENIGMA_API_KEY |
80 | 34 | - pytest -s -r xX --cov-config .coveragerc --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml |
81 | 35 | - flake8 --version |
82 | 36 | - flake8 pandas_datareader |
83 | 37 |
|
84 | 38 | after_script: |
85 | 39 | - | |
86 | | - if [[ ${DOCBUILD} ]]; then |
| 40 | + if [[ "$DOCBUILD" ]]; then |
87 | 41 | cd docs |
88 | 42 | make html && make html |
89 | 43 | cd .. |
90 | 44 | doctr deploy devel --build-tags |
91 | | - if [[ -z ${TRAVIS_TAG} ]]; then |
| 45 | + if [[ -z "$TRAVIS_TAG" ]]; then |
92 | 46 | echo "Not a tagged build." |
93 | 47 | else |
94 | 48 | doctr deploy stable --build-tags |
|
0 commit comments