Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Para poder ter dois jobs ou mais jobs.

Melhorar a estrutura de testes de dependências em futuros releases, evitando
que muitos erros só apareçam quando é lançado o release.
  • Loading branch information
idgserpro committed Oct 7, 2016
1 parent a1cf99a commit 32fd576
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@ sudo: false
cache:
directories:
- eggs
- parts/node
env:
- PLONE_VERSION=4.2
- PLONE_VERSION=4.3
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: 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
Expand All @@ -20,6 +33,8 @@ 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
Expand Down
1 change: 1 addition & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
extends =
https://raw.github.com/collective/buildout.plonetest/master/test-4.3.x.cfg
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg
https://raw.githubusercontent.com/plonegovbr/portal.buildout/master/buildout.d/versions.cfg

package-name = brasil.gov.vcge
package-extras = [test, archetypes, dexterity]
Expand Down

0 comments on commit 32fd576

Please sign in to comment.