forked from delgadom/clatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (76 loc) · 2.8 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
85
86
87
88
89
language: python
python:
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy-5.4.1
env:
matrix:
- CLATTER_TEST_ENV=basic
- CLATTER_TEST_ENV=conda
matrix:
allow_failures:
- python: pypy-5.4.1
env: CLATTER_TEST_ENV=conda
install:
- if [[ "$CLATTER_TEST_ENV" == "conda" ]]; then
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://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 update -q conda;
conda info -a;
conda create -q -n clatter python=$TRAVIS_PYTHON_VERSION h5py netCDF4 xarray dask numpy scipy pandas h5py hdf5 numba blaze scipy bottleneck dask;
source activate clatter;
fi
- python setup.py install
- python -m pip install .
- python -m pip install .[test]
- python -m pip install coveralls
- python -m pip install pytest-cov
script:
- export PATH=/home/travis/miniconda/bin:$PATH
- export PATH=/home/travis/miniconda1/bin:$PATH
- export PATH=/home/travis/miniconda2/bin:$PATH
- export PATH=/home/travis/miniconda3/bin:$PATH
- export PATH=/home/travis/miniconda4/bin:$PATH
- if [[ "$CLATTER_TEST_ENV" == "conda" ]]; then
source activate clatter;
if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
python -m pytest ./clatter ./tests;
else
python -m pytest ./clatter ./tests --cov=clatter --cov=tests --doctest-modules --cov-report term-missing;
fi;
else
if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
tox;
else
tox;
fi;
fi
deploy:
provider: pypi
user: delgadom
password:
secure: Jw4AqKuQcVpK9nsLZu/chk91cLGZxdwTugewhQlaEp5k1Hyx6HxvJMg5LFg4cFzfzRibmOtatWJUDy9XA3q7OhDNwKjd2UxCflOpB/Sb3jsgUWnEnGOgr8bDbnfRUW40zZf4vheKhSGif5hf3HqtnPMe41vtLy8QzTQSMl7FHgLI0eW+6sXErzKdDVmkcNGFhjClm7/yWJRPxNxFsJv2ofXMFkdN97eaN8gOiNKteB0JRHsKiAvH/y8nHKO/R/f3GwAyXw+WlkxoD0iMYyAUy+CTU1U83Kphwym1y2xkh6KGJnyKMiOm7bSWqomHRcHD5vCj8Qlxz5LD+Xpy/CIRe3tw5YmDJDrpTAEQLJgH5h2ers6H7+uk5VPdBL8O/L+Vk2yKAt0F0nWw9nObiGWCUx3efuikqyEDZkpiGkDgFszIFeLpvd1TFSM0AnQNhhof3KDaFSkTGc4cuYPKbVQCAC0wevZPExKj5f6djPkyl5SaoAOGbHfuKuLsHbssX8IBOU193r8c/K03rjDTtcwvkT73uKE2II9Rfo8R8drqH/kznr8Kq1wUEKGh/A4uretZlr2dw051qi6qxgEgUKoQNfuIhP+5KBm7Zp2jIdG3Nqi4iP9zpH4+Kjwvhl6hn9Kx5SDwxVwbnS5A9P7I6L32QyZbc5VJSs2RaiKeG5h8o7I=
on:
branch: master
distributions: sdist bdist_wheel
repo: delgadom/clatter
services:
- docker
before_install:
- docker pull tray/dynamodb-local
notifications:
email:
on_success: never
on_failure: never
after_success:
- coveralls