Skip to content

Commit

Permalink
Merge pull request #37 from plonegovbr/integracao_continua_1.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
idgserpro authored Oct 13, 2016
2 parents 0b38068 + 194ad21 commit 6e1314e
Show file tree
Hide file tree
Showing 30 changed files with 496 additions and 475 deletions.
43 changes: 32 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,43 @@
language: python
python: 2.7
sudo: false
cache:
directories:
- eggs
- parts/node
env:
- PLONE_VERSION=4.2
- PLONE_VERSION=4.3 QA=true
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:
- sed -ie "s#travis-4.x.cfg#travis-$PLONE_VERSION.x.cfg#" travis.cfg
- mkdir -p buildout-cache/downloads
- python bootstrap.py -c travis.cfg
- bin/buildout -c travis.cfg -N -q -t 3
# 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
- test -v QA && bin/code-analysis || true
after_success: test -v QA && bin/coverage.sh && pip install -q coveralls && coveralls || true
after_failure:
- bin/buildout annotate -c travis.cfg
- firefox -v
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
Loading

0 comments on commit 6e1314e

Please sign in to comment.