-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
61 lines (54 loc) · 1.55 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
language: python
sudo: false
env:
# Default values for common packages, override as needed
global:
- COVERAGE=true
matrix:
fast_finish: true
include:
- python: 2.7
env:
- PYTHON=2.7
- PANDAS=0.19
- python: 2.7
env:
- PYTHON=2.7
- PANDAS=0.21
- python: 2.7
env:
- PYTHON=3.5
- PANDAS=0.22
- python: 2.7
env:
- PYTHON=3.6
- PANDAS=0.23
- python: 2.7
env:
- PYTHON=3.7
# Setup anaconda
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- export PATH=/home/travis/miniconda2/bin:$PATH
- conda update --yes --quiet conda
# Build package list to avoid empty package=versions; only needed for versioned packages
- PKGS="python=${PYTHON}"
- PKGS="${PKGS} pandas"; if [ ${PANDAS} ]; then PKGS="${PKGS}=${PANDAS}"; fi
# Install packages
install:
- conda create --yes --quiet -n pandas-stash-test ${PKGS} ${OPTIONAL} pytables
- source activate pandas-stash-test
- pip install flake8 coverage pytest coveralls pytest-cov codecov pytest-xdist
- python setup.py build
script:
- SRCDIR=$PWD
- python setup.py install
- python -c "import pandas as pd; pd.show_versions();"
- py.test -n 2 -s --cov=pandas_stash --pyargs pandas_stash
- flake8 pandas_stash --exclude=*test*,*\doc\*,setup.py
after_success:
- if [ ${COVERAGE} = true ]; then coveralls --rcfile=${SRCDIR}/.travis_coveragerc; fi
- if [ ${COVERAGE} = true ]; then codecov; fi