-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
52 lines (44 loc) · 1.08 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
52
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: "__token__"
password: "${PYPI_TOKEN}"
skip_cleanup: true
on:
tags: true
before_install:
- pip install --upgrade pip # some TravisCI images have outdated pip
- python setup.py egg_info
- pip install --upgrade $(cat src/akro.egg-info/requires.txt | grep '^[^\[]') # Upgrade all dependencies.
install:
- pip install .[all]
- pip install .[dev]
script:
# only run pre-commit checks on PRs
- if [[ "${TRAVIS_EVENT_TYPE}" == "pull_request" ]]; then
scripts/travisci/check_precommit.sh;
fi
- flake8 --version
- flake8
- pytest --cov=akro
- pushd docs && make html && popd
after_script:
- coverage xml
- bash <(curl -s https://codecov.io/bash)
notifications:
email: false