-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
70 lines (66 loc) · 1.94 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
language: python
stages:
- linting
- test
- 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,R0801,R0903,R0914 {} +
- 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 the package
- stage: test
install: pip install -U pip setuptools wheel
name: "Test with Python 3.5.3"
python: "3.5.3"
script:
- python setup.py install
- googledevices info --system
- stage: test
install: pip install -U pip setuptools wheel
name: "Test with Python 3.5 (newest)"
python: "3.5"
script:
- python setup.py install
- googledevices info --system
- stage: test
install: pip install -U pip setuptools wheel
name: "Test with Python 3.6 (newest)"
python: "3.6"
script:
- python setup.py install
- googledevices info --system
# 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