forked from pytoolz/toolz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (45 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
46
47
48
49
50
51
sudo: false
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
- "pypy3.5-7.0"
- "pypy3.6-7.1.1"
env:
global:
- PEP8_IGNORE="E731,W503,E402"
- secure: "B1ICJrU2eswNMjyGdmq9Z6Tbw33fQTqnGAZnNf2JuhEPl5fiI0OiyyL18WqbdwkNan0dIM7muOkCGIecYB+FSjXI/zDIyO0MhdaMDVQUDEbjW7STZZUHNYzcqrrj/isc2YPl/YfrjLKvV0w0AtS1wIq+YR9TjYQp9UxqBpqW770="
- secure: "Iv+zVkk/Relq43+QTLHAX8a7jpm/oVXVfJDqBmZjisblO0/toNNnoXI6OEjkd1QwZOUDkJ76rKsht9aeMllndKZ4XotuzxpP1iI6MrX+r9+hzI1xfJs2OqKDnxmtNV4fTlzhGTKXJbkSICjCfvWx20hFlgBB+NghcnQTW5GVw/w="
# command to install dependencies
install:
- pip install coverage pep8 pytest
# command to run tests
# require 100% coverage (not including test files) to pass Travis CI test
# To skip pypy: - if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then DOSTUFF ; fi
script:
- export MAJOR_PYTHON_VERSION=`echo $TRAVIS_PYTHON_VERSION | cut -c 1`
- coverage run --source=toolz $(which nosetests)
--with-doctest toolz/
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then coverage report --show-missing --fail-under=100 ; fi
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pep8 --ignore=$PEP8_IGNORE --exclude=conf.py,tests,examples,bench -r --show-source . ; fi
# For convenience, make sure simple test commands work
- python setup.py develop
- py.test
- nosetests
# load coverage status to https://coveralls.io
after_success:
- if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then pip install coveralls --use-mirrors ; coveralls ; fi
# publish new version to pypi
deploy:
provider: pypi
skip_existing: true
on:
tags: true
user: __token__
password: $PYPI_PASSWORD1$PYPI_PASSWORD2
distributions: "sdist bdist_wheel"
notifications:
email: false