-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
41 lines (38 loc) · 1.35 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
language: python
env:
global:
secure: dlKlpVXGzCuN1Wc0h48HeT3EYjND2erX6hPeya/c6SR9LTN+ybcWGyZrHDtybOaRw28REVIXqH3unkVtX/X4d46U/tmRcC/Fy7wInhOS82yuFRCB8TinQkpeqRDZuU+HiW737uzmYf3U37NZnm2VGCsvVXUAoZe6/aLgTXMHP6U=
matrix:
- PYTHON=2.7 PANDAS=0.20.2
- PYTHON=2.7 PANDAS=0.23.2
- PYTHON=3.5 PANDAS=0.21.1
- PYTHON=3.6 PANDAS=0.22.0
- PYTHON=3.6 PANDAS=0.23.2 COVERAGE=true
install:
- if [[ "$PYTHON" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels pandas
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$PYTHON pip numpy scipy pandas=$PANDAS nose matplotlib requests
- source activate test-environment
- "pip install -r requirements_test.txt"
- pip install flake8 pytest pytest-cov codecov
script:
- if [[ "$PYTHON" == "2.7" ]]; then
nosetests -v -s;
else
nosetests -v -s --with-coverage --cover-package=japandas;
fi
- flake8 --ignore E501 japandas
after_success:
- if [ "$COVERAGE" ]; then
codecov;
fi