-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
43 lines (43 loc) · 1000 Bytes
/
.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
language: python
python: 2.7
sudo: false
cache:
directories:
- $HOME/.pylint.d
- eggs
- parts/node
addons:
# XXX: use an older Firefox ESR as we are stuck with selenium = 2.53.5
# https://github.com/SeleniumHQ/selenium/issues/2739#issuecomment-249482533
firefox: 45.9.0esr
env:
global:
- PLONE_CSRF_DISABLED=true
matrix:
fast_finish: true
before_install:
# FIXME: I have no idea how and why six==1.11.0 is being installed
- pip uninstall -y six
install:
- python bootstrap.py
- bin/buildout annotate
- bin/buildout
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- bin/code-analysis
- bin/test
- bin/pylint --py3k --disable=no-absolute-import src/brasil/gov/portlets || true
after_success:
- pip install coverage
- coverage run bin/test --layer=\!Robot
# Coveralls
- pip install coveralls
- coveralls
# Codacy
- coverage xml
- pip install codacy-coverage
- python-codacy-coverage -r coverage.xml
notifications:
irc: irc.freenode.org#plonegovbr