-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
33 lines (28 loc) · 1.08 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
sudo: required
language: python
python:
- "2.7"
# command to install dependencies
install:
- pip install ansible
#- pip install pylint
- pip install flake8
- pip install pycodestyle
- ansible --version
# command to run tests
script:
# With pylint ignore
# logging-format-interpolation: Use % formatting in logging functions
# global-statement : Using the global statement
#- pylint library/* -d logging-format-interpolation -d global-statement
# With flake ignore
# F403: <module> import *' used; unable to detect undefined names
# F405: <var> may be undefined, or defined from star imports
# W503: line break before binary operator (PEP8 advices to put logical operator ahead)
#- flake8 library/* --max-line-length=100 --ignore F403,F405,W503
- flake8 library/* --max-line-length=100
# pycodestyle (PEP8)
- pycodestyle library/* --max-line-length=100
# checking yaml syntax is not relevant since there are just examples.
#- ansible-playbook playbook_aix_flrtvc.yml --syntax-check
#- ansible-playbook playbook_aix_suma_targets_all.yml --syntax-check