-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (57 loc) · 1.64 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
language: python
notifications:
email: false
matrix:
include:
- name: "Python 3.7.x on Xenial Linux"
python: 3.7
install:
- pip3 install --upgrade pip
- pip3 install flake8 pydocstyle black
- pip3 install pytest-cov codecov coverage
script:
- pytest --cov=./
- coverage run -a random_verse.py
- flake8
- pydocstyle random_verse.py
- black --check .
- codecov
- name: "Python 3.6.x on Xenial Linux"
python: 3.6
install:
- pip3 install --upgrade pip
- pip3 install flake8 pydocstyle black
- pip3 install pytest-cov codecov coverage
script:
- pytest --cov=./
- coverage run -a random_verse.py
- flake8
- pydocstyle random_verse.py
- black --check .
- codecov
- name: "Python 3.5.x on Xenial Linux"
python: 3.5
install:
- pip3 install --upgrade pip
- pip3 install flake8 pydocstyle # Black only runs on 3.6+ and I'm too lazy to set up pyenvs.
- pip3 install pytest-cov codecov coverage
script:
- pytest --cov=./
- coverage run -a random_verse.py
- flake8
- pydocstyle random_verse.py
- codecov
- name: "Python nightly on Xenial Linux"
python: "nightly"
install:
- pip3 install --upgrade pip
- pip3 install flake8 pydocstyle black
- pip3 install pytest-cov codecov coverage
script:
- pytest --cov=./
- coverage run -a random_verse.py
- flake8
- pydocstyle random_verse.py
- black --check .
- codecov
dist: xenial