-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
43 lines (43 loc) · 1.35 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
language: python
python: 2.7
sudo: false
cache:
directories:
- eggs
- parts/node
env:
matrix:
- PLONE_VERSION=4.2
# Nos demais pacotes plonegovbr, como não testo as versões além do Plone
# 4.3 (ou seja, por padrão testo sõ a 4.3), não uso a variável
# PLONE_VERSION, apenas a MASTER e a PENDING_RELEASE.
- PLONE_VERSION=4.3 MASTER=true
- PLONE_VERSION=4.3 PENDING_RELEASE=true
matrix:
allow_failures:
- env: PLONE_VERSION=4.2
- env: PLONE_VERSION=4.3 MASTER=true
fast_finish: true
install:
# Remova a linha que aponta para o versions do novo release, por padrão 4.3,
# se o job for o 4.2 ou o que tem que pegar do master.
- test "$MASTER" -o "$PLONE_VERSION" = 4.2 && sed -ie '/https:\/\/raw\.githubusercontent\.com\/plonegovbr\/portal\.buildout\/master\/buildout\.d\/versions\.cfg/d' buildout.cfg || true
- sed -ie "s#test-4.3#test-$PLONE_VERSION#" buildout.cfg
- python bootstrap.py
- bin/buildout annotate
- bin/buildout
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- firefox -v
script:
- bin/code-analysis
- bin/test
after_success:
# vcge, no momento, não possui testes do tipo "Robots", ao contrário dos
# demais pacotes em plonegovbr.
- bin/createcoverage -t "--layer=!Robot"
- pip install coveralls
- coveralls
notifications:
irc: irc.freenode.org#plonegovbr