-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (26 loc) · 950 Bytes
/
.travis.yml
File metadata and controls
26 lines (26 loc) · 950 Bytes
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
---
sudo: false
dist: trusty
language: pylint
env:
- PYLINT="latest"
matrix:
allow_failures:
- env: PYLINT="latest"
addons:
apt:
packages:
- aspell
- aspell-en
install:
- travis_retry pip install --user pylint==1.7.5
- pylint --version
script:
- FILES=$(find . -name "*.py" | grep -v "ci-scripts/")
- for i in $(echo $FILES); do echo $i; pylint $i; done
- TEMPLATES=$(find . -name '*template.txt*')
# the aspell parameters set: english language, utf-8 encoding, home dir and personal dictionary to exclude some technical terms
# we also ignore words with 3 or less characters.
- for t in $(echo $TEMPLATES); do echo $t; cat $t|aspell --lang=en --ignore 3 --encoding=utf-8 --home-dir=. --personal=.aspell.en.pws list; done
- READMES=$(find . -name '*README*')
- for t in $(echo $READMES); do echo $t; cat $t|aspell --lang=en --ignore 3 --encoding=utf-8 --home-dir=. --personal=.aspell.en.pws list; done