-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (40 loc) · 968 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
43
44
45
46
47
48
49
dist: xenial # required for Python >= 3.7
language: python
git:
depth: false
python:
- "3.5"
- "3.6"
- "3.7"
jobs:
include:
# special deploy stage for tag builds ONLY
- stage: deploy
if: tag IS present
script:
- echo "${TRAVIS_TAG}" > VERSION
after_script: skip
deploy:
provider: pypi
user: "${PYPI_USERNAME}"
password: "${PYPI_PASSWORD}"
skip_cleanup: true
on:
tags: true
before_install:
- pip install --upgrade pip # some Travis images have outdated pip
install:
- pip install .[all]
- pip install .[dev]
script:
- scripts/travisci/check_precommit.sh
- flake8 --version
- flake8 src --extend-ignore=D # ignore docstrings for now
- flake8 --exclude=src,docs --extend-ignore=D
- pytest --cov=viskit
- pushd docs && make html && popd
after_script:
- coverage xml
- bash <(curl -s https://codecov.io/bash)
notifications:
email: false