-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (71 loc) · 1.61 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
78
79
80
81
82
83
84
sudo: true
dist: xenial
language: python
matrix:
fast_finish: true
include:
- python: 3.7
env:
- JOB: 'UNITTEST_3.7'
- FULL_DEPS: true
- python: 3.6
env:
- JOB: 'UNITTEST'
- FULL_DEPS: true
- python: 3.6
env:
- JOB: 'UNITTEST_pd_0.22'
- FULL_DEPS: true
- python: 3.6
env:
- JOB: 'DOCS'
- FULL_DEPS: true
cache: pip
notifications:
email: false
before_install:
- |
echo "before install"
# Install packages
install:
# Install dependencies
- |
echo "install"
pip install -U setuptools
- |
if [[ "$JOB" == "UNITTEST" ]]; then
pip install -e .[testing]
pip install flake8
elif [[ "$JOB" == "UNITTEST_pd_0.22" ]]; then
pip install -e .[testing]
pip install pandas==0.22.0
pip install flake8
elif [[ "$JOB" == "UNITTEST_3.7" ]]; then
pip install -e .[testing]
pip install flake8
elif [[ "$JOB" == "DOCS" ]]; then
pip install sphinx sphinx-bootstrap-theme recommonmark
fi
- pip list
script:
- |
if [[ "$JOB" == "UNITTEST" ]]; then
coverage erase
pytest
elif [[ "$JOB" == "UNITTEST_pd_0.22" ]]; then
coverage erase
pytest
elif [[ "$JOB" == "UNITTEST_3.7" ]]; then
coverage erase
pytest
elif [[ "$JOB" == "DOCS" ]]; then
# low pandoc version leads to a warning so
# SPHINXOPTS=-W fails
python setup.py docs
fi
# Calculate coverage
after_success:
- echo "success"
- |
#if [[ "$JOB" == "UNITTEST" ]]; then
#coveralls --rcfile=.coveragerc