forked from pydata/pandas-datareader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (67 loc) · 2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
dist: bionic
language: python
env:
global:
- TEST_TYPE="stable and not requires_api_key"
# Doctr deploy key for pydata/pandas-datareader
- secure: "iGbOAbBSV5y0TKDh2CifRSk6OpLA9GbEEL/hscHFLSDDUCWcdfvYXda3SWJFWyoQ5QUxSigXWd+ukr4u92d7lmB7m3TWj6BAMNuRpatTgnejLNwLvNeYdvLAxPvx39Cq85frd1Rx1beBLn3h/4wm4Ah+dR5W9NH8+x3OuZMH3Eo="
matrix:
fast_finish: true
include:
- python: 3.5
env: PANDAS=0.21 NUMPY=1.13
- python: 3.5
env: PANDAS=0.22 NUMPY=1.13
- python: 3.6
env: PANDAS=0.23 NUMPY=1.14
- python: 3.7
env: PANDAS=0.25 NUMPY=1.17 DOCBUILD=true
- python: 3.7
env: PANDAS=0.25 NUMPY=1.17
- python: 3.7
env: TEST_TYPE="quandl" PANDAS=0.25 NUMPY=1.17
- python: 3.8
env: PANDAS=0.25 NUMPY=1.18
# In allow failures
- python: 3.7
env: TEST_TYPE="alpha_vantage" PANDAS=0.25 NUMPY=1.17
- python: 3.7
env: TEST_TYPE="not stable and not alpha_vantage and not quandl" PANDAS=0.25 NUMPY=1.17
- python: 3.7
env: PANDAS="MASTER" NUMPY=1.17
allow_failures:
- python: 3.7
env: PANDAS="MASTER" NUMPY=1.17
- python: 3.7
env: TEST_TYPE="alpha_vantage" PANDAS=0.25 NUMPY=1.17
- python: 3.7
env: TEST_TYPE="not stable and not alpha_vantage and not quandl" PANDAS=0.25 NUMPY=1.17
install:
- source ci/pypi-install.sh;
- pip list
- python setup.py install
script:
- if [[ -n "${TEST_TYPE+x}" ]]; then export MARKERS="-m ${TEST_TYPE}"; fi
- pytest -v -s -r xX "${MARKERS}" --cov-config .coveragerc --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml
- |
if (( $(echo "$TRAVIS_PYTHON_VERSION > 3.5" | bc -l) )); then
black --check pandas_datareader
fi
- flake8 --version
- flake8 pandas_datareader
- |
if [[ "$DOCBUILD" ]]; then
set -e
cd docs
make html
cd ..
if [[ -z "$TRAVIS_TAG" ]]; then
doctr deploy devel --build-tags
else
doctr deploy . --build-tags
fi
set +e
fi
after_script:
- coveralls
- codecov