forked from osfclient/osfclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 1.73 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
language: python
notifications:
email: false
cache:
directories:
- $HOME/.cache/pip
env:
matrix:
- DISTRIB="conda" PYTHON_VERSION="3.5" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true"
- DISTRIB="conda" PYTHON_VERSION="3.7" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="3.8" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="3.9" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="2.7" COVERAGE="false"
install: source build_tools/travis_install.sh
script:
- python --version
- if [ ${COVERAGE} == "true" ];
then py.test --cov=osfclient; else
py.test;
fi
after_success:
- if [ ${COVERAGE} == "true" ]; then
pip install codecov;
codecov;
fi
deploy:
- provider: pypi
user: osfclient
# this line together with `setup.cfg` creates universal wheels as long as
# osfclient is a python only module (no compiled code)
distributions: sdist bdist_wheel
on:
tags: true
repo: osfclient/osfclient
condition: "$PYTHON_VERSION = 3.6"
password:
secure: SeqLSRnqFqiJgNMvc3E9oJ7evptcnt9a0avlLr95GaPbdAAw/Hp3P00pGCg5e6veCoKPvQa/EK8sl4dphRhnSwIgfVsKRYgof5z8tiKzSuZn4rSSomfFBmmgdRml0osbQ6XOunFyceZP/TZw++Fch9iGwtC9ewNzb3Y1jQf/f/gb+QRa6OcE6mMDQtGZbwkmY1rzl2CgJIM9iBWh164YMSAZehmvENJwZUjcHXrdLfbKD4u85OTsHAuUycsC9PBjA8bTJt5DTEHwkHNToVc/0eT1ZYuiDSmfFC8i1fJvZqVD8zrglhHSRIQn8n7jB8pAXFUnBsrwhD2cVDqiu5RQ0AU5MJf+ffN0EhTALpVjs9U//UEfSBQ7vPGgCmjEwAmR3Cpqyr8PmsgT7L+I5jxGkrmZ3uWrH6qm8d91EoF1A6L7SmQtclaMSNHfmY4me7QWNamZiyXt4Wl4RrQJOJ+q65IaFDaZA8xD+CockpMNZDY97WZlQt/i20sQRREkeS6NFrZvzyhotjS0w6Jm6feJVqL6X6k+h9vG0hX/rVwHW/36DnIg/EL9W3U2SluSqU/Q76YTLGxb5Od5dw/JOLxREy2VzBNaN4Z0OlMM7UP8btW7MmqI2IyQm+GT+653SwaWwsEry6MdV3KfcCWeq+1U6CPtqw2QWT7D2ZFtBt0Hjb0=