-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (44 loc) · 2.17 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
language: python
python:
- "3.6"
dist: trusty
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
dist: xenial
env:
- PEP8_IGNORE="E221,E501,W504,W391,E241"
# command to install dependencies
install:
- pip install --upgrade pip setuptools
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
# 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=telerembash $(which nosetests) -v --with-doctest tests/ --exclude-dir tests/nonci/
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then coverage report --show-missing --fail-under=40 ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then pycodestyle --ignore=$PEP8_IGNORE --exclude=tests,.venv -r --show-source . ; fi
# For convenience, make sure simple test commands work
- python setup.py develop
# - py.test
# - nosetests -e tests.nonci.*
# load coverage status to https://coveralls.io
after_success:
- 'echo travis-python: $TRAVIS_PYTHON_VERSION'
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then pip install coveralls; COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN coveralls ; fi
notifications:
email: false
deploy:
provider: pypi
username: kpe
password:
secure: RCli0frBAONGGKPzDLJFPUb4HZJW8ZT3Sdx97js1nWwA7yKzEuC1BDN9WSuup62NbGosmI+OEpNB3TVH37l50dAqpXiBr8USTb0H0MFpCG68voIxV7Rj1YBi45FLEvrzDHFQ3/uKy/dtdj9kZtUPxmnzKUMZWsm/gZTnunt9VxDKqqSJorKrxyPhXZCrirRpxBOY0AnQHTbU6G2mEsrEagweJ5QZvBYOD+frrx8eg7W3wHBJsaUQG54IiA7+s3A9+2HAevL3PB76ODg5qBkCNtN0eIs8PBmFb/RWB4hSB7At7Ue85OKhE3mYpvMhonZKzRmaBq45dHLy/2Nd4nBhR/hMMRxEDxcyuYlHdi3z4TZfhTj8Gstk3d0U6oQDmVWPFbwvMeXcIMS4xMn4i27PTM9/UaziJB6OJbzEabU7pBNPcBedaIue/0/cIIQ1obLSE5xvf11g3XJMwfpsVvyWmE5sk52zR4WppRem07HdI2HhBCTX5YM33UbvwKxB2KvIOdsT4GN8s5q2QPCvRsMMVrrb2J6HMyaGA+2myWmEdoMqH+0ekq+0DUcylDAkieQYKX/T9WeLAMu4Q/oZOEkXdnQM/xZcJ846J4tDeWXmnNAyDowblFrydLxzwWSJ1mgZ2FfjJZiGi69SJo+50hdQDgpi5M2XecaMDh2uGbiNryo=
on:
tags: true
branch: master
condition: "$TRAVIS_PYTHON_VERSION = 3.7"
skip_existing: true