forked from ludeeus/pytautulli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (52 loc) · 1.48 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
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=F0401,W0613,R0205,R0902,R0913 {} +
- 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
- python -c"import pytautulli"
# 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: "$PYPIUSER"
password: "$PYPIKEY"
on:
tags: true