This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
85 lines (70 loc) · 1.51 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: ~> 1.0
os: linux
dist: bionic
language: python
# FIXME: redis runs for all jobs. It's only needed for tests/examples
services:
- redis
python:
- &default_py 3.6
- 3.7
- 3.8
# - pypy3
- nightly
stages:
- lint
- test
- deploy
cache:
pip: true
env:
global:
- PIP_DISABLE_PIP_VERSION_CHECK=yes
install:
- pip install .
- pip install -r requirements/ci-test.txt
script:
- make ci-test
after_script:
- codecov -f coverage.xml
jobs:
fast_finish: true
allow_failures:
- python: nightly
include:
- stage: lint
name: black, flake8, isort, mypy
python: *default_py
install:
- pip install -r requirements/lint.txt
script:
- make black-check
- make flake8
- make isort-check
- make mypy
- stage: test
os: windows
language: shell
name: Python 3.8 on Windows
before_install:
- choco install python
- python -m pip install --upgrade pip
- choco install make
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
- python: pypy3
os: linux
dist: xenial # pypy 7-3.6 is not yet supported on bionic in travis
- python: *default_py
name: Examples
install:
- pip install .
script:
- make examples
- stage: deploy
if: tag IS present
python: *default_py
install:
- pip install -r requirements/wheels.txt
script:
- make dist
- twine upload -u $PYPY_USER -p $PYPI_PASSWORD dist/*