Skip to content

Instantly share code, notes, and snippets.

@toutpt toutpt/.travis.yml
Last active Dec 11, 2015

Embed
What would you like to do?
This is boiler plate to use travis-ci in your plone addon
language: python
python: 2.7
env:
- TARGET=test
- TARGET=coverage.sh
- TARGET=python-validation.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
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
script: bin/$TARGET
[buildout]
extends =
https://github.com/collective/buildout.plonetest/raw/master/travis-4.x.cfg
https://github.com/collective/buildout.plonetest/raw/master/qa.cfg
package-name = collective.contentrules.imaging
package-src = collective/contentrules/imaging
package-extras = [test]
package-pep8-ignores = E501,W404
parts+=
createzopecoverage
coverage-sh
flake8
python-validation-sh
# css-validation-sh
# js-validation-sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.