forked from pydata/pandas-datareader
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
77 lines (72 loc) · 2.12 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
73
74
75
76
77
dist: bionic
language: python
env:
global:
- TEST_TYPE="stable and not requires_api_key"
- TEST_INSTALL=false
# Doctr deploy key for pydata/pandas-datareader
- secure: "iGbOAbBSV5y0TKDh2CifRSk6OpLA9GbEEL/hscHFLSDDUCWcdfvYXda3SWJFWyoQ5QUxSigXWd+ukr4u92d7lmB7m3TWj6BAMNuRpatTgnejLNwLvNeYdvLAxPvx39Cq85frd1Rx1beBLn3h/4wm4Ah+dR5W9NH8+x3OuZMH3Eo="
matrix:
fast_finish: true
include:
- python: 3.6
env: PANDAS=0.23 NUMPY=1.16
- python: 3.7
env: PANDAS=0.25 NUMPY=1.17 DOCBUILD=true
- python: 3.7
env: PANDAS=0.25 NUMPY=1.18
- python: 3.8
env: PANDAS=1 NUMPY=1.18
- python: 3.8
env: PANDAS=1 NUMPY=1.19 TEST_INSTALL=true
- python: 3.7
env: TEST_TYPE="quandl" PANDAS=1 NUMPY=1.19
# In allow failures
- python: 3.7
env: TEST_TYPE="alpha_vantage" PANDAS=1 NUMPY=1.19
- python: 3.7
env: TEST_TYPE="not stable and not alpha_vantage and not quandl" PANDAS=1 NUMPY=1.19
- python: 3.7
env: PANDAS="MASTER" NUMPY=1.18
allow_failures:
- python: 3.7
env: PANDAS="MASTER" NUMPY=1.17
- python: 3.7
env: TEST_TYPE="alpha_vantage" PANDAS=1 NUMPY=1.19
- python: 3.7
env: TEST_TYPE="not stable and not alpha_vantage and not quandl" PANDAS=1 NUMPY=1.19
install:
- source ci/pypi-install.sh;
- pip list
- pip install . --no-build-isolation -v
script:
- if [[ -n "${TEST_TYPE+x}" ]]; then export MARKERS="-m ${TEST_TYPE}"; fi
- |
if [[ ${TEST_INSTALL} = false ]]; then
pytest -v -s -r xX "${MARKERS}" --cov-config .coveragerc --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml
else
mkdir pdr_test
cd pdr_test
python -c "import pandas_datareader; pandas_datareader.test()"
cd ..
fi
- black --version
- black --check pandas_datareader
- 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