forked from plonegovbr/portal.buildout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
54 lines (54 loc) · 1.67 KB
/
Copy path.travis.yml
File metadata and controls
54 lines (54 loc) · 1.67 KB
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
language: python
python: 2.7
sudo: false
cache:
directories:
- 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:
# TODO: update https://github.com/plonegovbr/portalpadrao.release/blob/master/README.md
- DEVELOPMENT=true
- PRODUCTION=true
matrix:
allow_failures:
- env: PRODUCTION=true
fast_finish: true
before_install:
- test $DEVELOPMENT && cp travis-development.cfg buildout.cfg || cp travis-production.cfg buildout.cfg
# FIXME: I have no idea how and why six==1.11.0 is being installed
- pip uninstall -y six
install:
- pip install -U setuptools==36.6.1
- python bootstrap.py
- bin/buildout annotate
- bin/buildout
# O release 1.1.5.1 veio com um erro e não vinha com os eggs do brasil.gov.portal.
# Dessa forma, passamos a testar se o egg foi realmente adicionado no buildout
# para que esse erro não ocorra novamente.
# Caso altere a versão do zc.buildout, pode ser que você necessite alterar o
# arquivo onde procura a string, trocando bin/instance por parts/instance.site.py
# por exemplo.
- grep -q 'brasil.gov.portal' bin/instance
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
# FIXME: we have isolation issues running tests
- bin/test -s brasil.gov.agenda
- bin/test -s brasil.gov.barra
- bin/test -s brasil.gov.portal
- bin/test -s brasil.gov.portlets
- bin/test -s brasil.gov.temas
- bin/test -s brasil.gov.tiles
- bin/test -s brasil.gov.vcge
after_failure:
- grep brasil.gov bin/test
notifications:
irc: irc.freenode.org#plonegovbr