forked from source-foundry/fdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (57 loc) · 1.74 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
53
54
55
56
57
58
59
language: python
matrix:
include:
- python: 3.7
dist: xenial
env: TOX_ENV=lint
install: pip install --upgrade flake8
script: make test-lint
- python: 3.7
dist: xenial
env: TOX_ENV=static-type-checks
install:
- pip install --upgrade pytype
- pip install -r requirements.txt
script: make test-type-check
- python: 3.7
dist: xenial
env: TOX_ENV=coverage
install:
- pip install --upgrade coverage pytest pytest-asyncio
- pip install .
script:
- make test-coverage
after_success:
- bash <(curl -s https://codecov.io/bash)
- python: 3.6
env: TOX_ENV=py36
install: pip install --upgrade tox pytest pytest-asyncio
script: tox -e $TOX_ENV
- python: 3.7
env: TOX_ENV=py37
install: pip install --upgrade tox pytest pytest-asyncio
dist: xenial
script: tox -e $TOX_ENV
- python: 3.8
env: TOX_ENV=py38
install: pip install --upgrade tox pytest pytest-asyncio
dist: xenial
script: tox -e $TOX_ENV
- os: osx
language: generic
osx_image: xcode11 # Python 3.7.4 running on macOS 10.14.4
install: pip3 install --upgrade tox pytest pytest-asyncio
env: TOX_ENV=py37
script: tox -e $TOX_ENV
# The following prevents Travis from running CI on pull requests that come from a
# branch in the same repository. Without this, it will run the same CI for the
# pull request branch _and_ the pull request itself, which makes no sense.
branches:
only:
- master
# We want to build wip/* branches since these are not usually used for PRs
- /^wip\/.*$/
# We want to build version tags as well.
- /^v\d+\.\d+.*$/
notifications:
email: false