-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
88 lines (77 loc) · 3.06 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
language: python
python:
- 2.7
- pypy-5.4.1
env:
global:
DYNAMODB_URL: http://dynamodb:8000/
matrix:
- DATAFS_TEST_ENV=basic
- DATAFS_TEST_ENV=xarray
matrix:
exclude:
- python: pypy-5.4.1
env: DATAFS_TEST_ENV=xarray
install:
- export BOTO_CONFIG=/dev/null
- pip install --upgrade pip
- if [[ "$DATAFS_TEST_ENV" == "xarray" ]]; 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 config --add channels conda-forge;
conda info -a;
conda create -q -n datafs python=$TRAVIS_PYTHON_VERSION;
source activate datafs;
conda install --yes --file requirements_conda.txt;
fi
- python setup.py install
- python -m pip install .
- python -m pip install .[test]
- python -m pip install -r requirements.txt
- python -m pip install -r requirements_test.txt
- python -m pip install git+https://github.com/PyFilesystem/pyfilesystem#egg=0.5.5a1
- python -m pip install coveralls
- python -m pip install pytest-cov
script:
- export PATH=$HOME/miniconda/bin:$PATH
- export PATH=$HOME/miniconda2/bin:$PATH
- export PATH=$HOME/miniconda3/bin:$PATH
- if [[ "$DATAFS_TEST_ENV" == "xarray" ]]; then
source activate datafs;
fi
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then python -m pytest ./datafs ./tests ./docs;
else python -m pytest ./datafs ./tests ./docs --cov=datafs --cov=examples --cov=docs --doctest-modules --cov-report term-missing;
fi
- sphinx-build -W -b html -d docs/_build/doctrees docs/. docs/_build/html
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: ClimateImpactLab/DataFS
services:
- mongodb
- dynamodb
- docker
before_install:
- docker pull tray/dynamodb-local
- docker run -d -p 8000:8000 tray/dynamodb-local -inMemory -port 8000
- export BOTO_CONFIG=/dev/null
notifications:
email:
on_success: never
on_failure: never
after_success:
- coverage combine
- coveralls