Last active
December 11, 2015 10:19
-
-
Save toutpt/4586049 to your computer and use it in GitHub Desktop.
This is boiler plate to use travis-ci in your plone addon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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