Skip to content

Commit

Permalink
Update development and CI configurations
Browse files Browse the repository at this point in the history
- Update bootstrap.py
- Use plone.recipe.codeanalysis
  • Loading branch information
hvelarde committed Nov 5, 2015
1 parent 1440c6a commit 948764e
Show file tree
Hide file tree
Showing 9 changed files with 193 additions and 279 deletions.
8 changes: 8 additions & 0 deletions .coveragerc
@@ -0,0 +1,8 @@
[report]
omit =
/home/*/.buildout/eggs/*
/usr/*
bin/test
buildout-cache/eggs/*
eggs/*
parts/*
64 changes: 34 additions & 30 deletions .travis.yml
@@ -1,34 +1,38 @@
language: python
python: 2.7
sudo: false
cache:
directories:
- eggs
- parts/node
env:
- TARGET=test
- TARGET=coverage.sh

# - TARGET=css-validation.sh
# - TARGET=js-validation.sh

# csslint and jshint dependencies, uncomment if needed
# before_install:
# - sudo apt-get install ack-grep
# - sudo apt-add-repository ppa:chris-lea/node.js -y
# - sudo apt-get update 1>/dev/null
# - sudo apt-get install nodejs npm -y
#
# csslint
# - npm install csslint -g
#
# jshint
# - npm install jshint -g
#
# robotframework or selenium
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start

- PLONE_VERSION=4.2
- PLONE_VERSION=4.3
- PLONE_VERSION=5.0
matrix:
include:
- python: 2.6
env: PLONE_VERSION=4.0
- python: 2.6
env: PLONE_VERSION=4.1
allow_failures:
- env: PLONE_VERSION=5.0
fast_finish: true
install:
- mkdir -p buildout-cache/eggs
- mkdir -p buildout-cache/downloads
- python bootstrap.py -c travis.cfg
- bin/buildout -N -t 3 -c travis.cfg install download install
- bin/buildout -N -t 3 -c travis.cfg

script: bin/$TARGET
- sed -ie "s#test-4.3#test-$PLONE_VERSION#" buildout.cfg
- python bootstrap.py
- bin/buildout annotate
- bin/buildout -Nq
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- firefox -v
script:
- bin/code-analysis
- bin/test
after_success:
- bin/createcoverage -t "--layer=!Robot"
- pip install -q coveralls
- coveralls
notifications:
irc: irc.freenode.org#plone-testing

0 comments on commit 948764e

Please sign in to comment.