|
1 |
| -sudo: false |
2 |
| - |
| 1 | +dist: bionic |
3 | 2 | language: python
|
4 | 3 |
|
5 | 4 | env:
|
6 | 5 | global:
|
| 6 | + - TEST_TYPE="stable and not requires_api_key" |
7 | 7 | # Doctr deploy key for pydata/pandas-datareader
|
8 | 8 | - secure: "iGbOAbBSV5y0TKDh2CifRSk6OpLA9GbEEL/hscHFLSDDUCWcdfvYXda3SWJFWyoQ5QUxSigXWd+ukr4u92d7lmB7m3TWj6BAMNuRpatTgnejLNwLvNeYdvLAxPvx39Cq85frd1Rx1beBLn3h/4wm4Ah+dR5W9NH8+x3OuZMH3Eo="
|
9 | 9 |
|
10 |
| - |
11 | 10 | matrix:
|
12 | 11 | fast_finish: true
|
13 | 12 | 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 |
32 |
| - # In allow failures |
33 |
| - - dist: bionic |
34 |
| - env: |
35 |
| - - PYTHON=3.6 PANDAS="MASTER" |
| 13 | + - python: 2.7 |
| 14 | + env: PANDAS=0.24 NUMPY=1.16 |
| 15 | + - python: 3.5 |
| 16 | + env: PANDAS=0.21 NUMPY=1.13 |
| 17 | + - python: 3.5 |
| 18 | + env: PANDAS=0.22 NUMPY=1.13 |
| 19 | + - python: 3.6 |
| 20 | + env: PANDAS=0.23 NUMPY=1.14 |
| 21 | + - python: 3.7 |
| 22 | + env: PANDAS=0.25 NUMPY=1.17 DOCBUILD=true |
| 23 | + - python: 3.7 |
| 24 | + env: PANDAS=0.25 NUMPY=1.17 |
| 25 | + - python: 3.7 |
| 26 | + env: TEST_TYPE="quandl" PANDAS=0.25 NUMPY=1.17 |
| 27 | + # In allow failures |
| 28 | + - python: 3.7 |
| 29 | + env: TEST_TYPE="alpha_vantage" PANDAS=0.25 NUMPY=1.17 |
| 30 | + - python: 3.7 |
| 31 | + env: TEST_TYPE="not stable and not alpha_vantage and not quandl" PANDAS=0.25 NUMPY=1.17 |
| 32 | + - python: 3.7 |
| 33 | + env: PANDAS="MASTER" NUMPY=1.17 |
36 | 34 | allow_failures:
|
37 |
| - - dist: bionic |
38 |
| - env: |
39 |
| - - PYTHON=3.6 PANDAS="MASTER" |
| 35 | + - python: 3.7 |
| 36 | + env: PANDAS="MASTER" NUMPY=1.17 |
| 37 | + - python: 3.7 |
| 38 | + env: TEST_TYPE="alpha_vantage" PANDAS=0.25 NUMPY=1.17 |
| 39 | + - python: 3.7 |
| 40 | + env: TEST_TYPE="not stable and not alpha_vantage and not quandl" PANDAS=0.25 NUMPY=1.17 |
40 | 41 |
|
41 | 42 | 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 |
| 43 | + - source ci/pypi-install.sh; |
| 44 | + - pip list |
76 | 45 | - python setup.py install
|
77 | 46 |
|
78 | 47 | script:
|
79 |
| - - export ENIGMA_API_KEY=$ENIGMA_API_KEY |
80 |
| - - pytest -s -r xX --cov-config .coveragerc --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml |
81 |
| - - flake8 --version |
82 |
| - - flake8 pandas_datareader |
83 |
| - |
84 |
| -after_script: |
| 48 | + - if [[ -n "${TEST_TYPE+x}" ]]; then export MARKERS="-m ${TEST_TYPE}"; fi |
| 49 | + - pytest -v -s -r xX "${MARKERS}" --cov-config .coveragerc --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml |
| 50 | + - | |
| 51 | + if (( $(echo "$TRAVIS_PYTHON_VERSION > 3.5" | bc -l) )); then |
| 52 | + black --check pandas_datareader |
| 53 | + fi |
| 54 | + - flake8 --version |
| 55 | + - flake8 pandas_datareader |
85 | 56 | - |
|
86 |
| - if [[ ${DOCBUILD} ]]; then |
| 57 | + if [[ "$DOCBUILD" ]]; then |
| 58 | + set -e |
87 | 59 | cd docs
|
88 |
| - make html && make html |
| 60 | + make html |
89 | 61 | cd ..
|
90 |
| - doctr deploy devel --build-tags |
91 |
| - if [[ -z ${TRAVIS_TAG} ]]; then |
92 |
| - echo "Not a tagged build." |
| 62 | + if [[ -z "$TRAVIS_TAG" ]]; then |
| 63 | + doctr deploy devel --build-tags |
93 | 64 | else
|
94 |
| - doctr deploy stable --build-tags |
| 65 | + doctr deploy . --build-tags |
95 | 66 | fi
|
| 67 | + set +e |
96 | 68 | fi
|
| 69 | +
|
| 70 | +after_script: |
97 | 71 | - coveralls
|
98 | 72 | - codecov
|
0 commit comments