-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 996 Bytes
/
.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
sudo: required
language: python
matrix:
include:
- python: 3.5
- python: 2.7
install:
# Install test only dependency
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install backports.tempfile;
fi
- python setup.py install
- pip install flake8 coveralls pytest-cov
# command to run tests
script:
- flake8
- py.test --cov image_dataset_viz --cov-report term-missing
after_success:
- coveralls
# PyPI Deployment: https://docs.travis-ci.com/user/deployment/pypi/
deploy:
provider: pypi
user: vfdev-5
# If password contains non alphanumeric characters
# https://github.com/travis-ci/dpl/issues/377
# pass it as secured variable
password: $PYPI_TOKEN
# otherwise, follow "How to encrypt the password": https://docs.travis-ci.com/user/encryption-keys/
# `travis encrypt deploy.password="password"`
# secure: "secured_password"
skip_cleanup: true
distributions: "sdist bdist_wheel"
on:
tags: true
python: "3.5"