forked from Vauxoo/pylint-odoo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (47 loc) · 1.87 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
language: python
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip
matrix:
include:
- python: 2.7
env:
TOXENV=py27-pylint14
- python: 2.7
env:
TOXENV=py27-pylint20
- python: 3.5
env:
TOXENV=py35-pylint14
- python: 3.5
env:
TOXENV=py35-pylint20
install:
- nvm install 6 # Update nodejs version to 6.latest, required by eslint
# Remove packages installed from addons-apt-packages of travis file
- sed -i '/node/d' ${TRAVIS_BUILD_DIR}/install.sh
- sed -i '/pip install ./d' ${TRAVIS_BUILD_DIR}/install.sh
# Install dependencies
- ${TRAVIS_BUILD_DIR}/install.sh
# Install testing dependencies
- pip install coveralls flake8==3.4.1
# Install tox
- pip install tox
# Install rst check
- pip install restructuredtext_lint pygments
script:
- flake8 --ignore=F601,W503,W504 --exclude=__init__.py .
- restructuredtext-lint ${TRAVIS_BUILD_DIR}/README.rst
- tox -e $TOXENV,profile-stats
after_success:
- coveralls
- python setup.py sdist # Build ChangeLog file from git log
# deploy:
# provider: pypi
# user: oca
# password:
# secure: hKfey6oW+K7HWxE6NJP4O9NtLnnrlofvyLAdoTk6TTA5ucqVizud7vAZN2eCu4Ftw+coTvmJLnZiy9qAREPhe3yeVyfcAOJZr4qQpH8Nzm0VKzKvOpq0L0PTFaNk1Btmmw7lbicGZsLm2qLj0dgg8pDBQ/q6U+A54gfAy3ddIAcdOP1tfdVIC1TPuSXxa8IBEec4BLE4Ao/gKoUBV9MSWyd3TgUbEycNAHHU27muhGxzEyOMW4GBgklyAjwtCzcMIPP8YW8uethCw+9nvU6q1petJYviLwM+txYrHHrgENS2yec8oFbqfXzYXprrx05BHvSdBZT5Rq2tGo02FG17FZ/HNx7g0lS7pRcyfx+8Vapf88pJdaW9rQmP90PEV5mO7EpOJ30s+xp02OIeUSkNIhIXCf9EGibW2gQynljqyuHdl1pBabBSFxA/9JICEyGEYkIRnOaKKzqBHjcpvh0AgpD/JpX5YkIc9bGjYRMiKh7bVM0JXHk1RUeC70jqAGRCObFGBF94O02POoOsRNL3+y7B+tEfbfpaSQQzqGtcfNpR/x6I5MzgNTDMGnzeUipiZM0dYaqcHdY8eAwKRMXIBVmB9JxRP+qjKtg+gSHSB4Mcmgm7hwyUWAvmxt3BnlHfF+ayyKzd0idnjGR0Gd2korndxGf0ZBbSqjkgCtPpdow=
# on:
# tags: true