-
Notifications
You must be signed in to change notification settings - Fork 71
/
.travis.yml
37 lines (37 loc) · 950 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
dist: xenial
sudo: false
language: python
python:
- "3.6"
- "3.7"
- "3.8"
install:
- "pip install -r requirements.txt"
- "pip install -r dev-requirements.txt"
- pip install coveralls
- pip install coverage
- pip install pytest-cov
before_script:
# We use before_script to report version and path information in a way
# that can be easily hidden by Travis' log folding. Moreover, a nonzero
# exit code from this block kills the entire job, meaning that if we can't
# even sensibly get version information, we correctly abort.
- which python
- python --version
- which pytest
- pytest --version
- which pylint
- pylint --version
script:
- pytest --cov=instruments
- pylint --disable=I,R instruments
after_success:
- coveralls
deploy:
provider: pypi
user: ${PYPI_USERNAME}
password: ${PYPI_PASSWORD}
distributions: "sdist bdist_wheel"
on:
tags: true
condition: "$TRAVIS_PYTHON_VERSION == 3.8"