-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
54 lines (50 loc) · 1.46 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
language: python
stages:
- linting
- install
- deploy
jobs:
include:
#Linting
- stage: linting
install: pip install pycodestyle
name: Linting with pycodestyle
python: '3.6'
script: find . -name \*.py -exec pycodestyle {} +
- stage: linting
install: pip install pydocstyle
name: Linting with pydocstyle
python: '3.6'
script: find . -name \*.py -exec pydocstyle {} +
- stage: linting
install: pip install pylint
name: Linting with pylint
python: '3.6'
script: find . -name \*.py -exec pylint --disable=C0301,C0330,F0401,W0613,R0801,R0913,R0914,R0915,R1702,R0912,R0902
{} +
- stage: linting
install: pip install pyflakes
name: Linting with pyflakes
python: '3.6'
script: find . -name \*.py -exec pyflakes {} +
- stage: linting
install: pip install flake8
name: Linting with flake8
python: '3.6'
script: find . -name \*.py -exec flake8 {} +
# Test install the module
- stage: install
install: pip install -U pip setuptools wheel
name: "Setup test"
python: "3.6"
script:
- python setup.py install
# Deploy to PyPi if all tests pass and change was done on master.
- stage: deploy
name: "Deploy to PyPi"
install: pip install -U pip setuptools wheel
script: skip
deploy: &pypi
provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD