djangocms_blog/.travis.yml

75 lines
1.9 KiB
YAML
Raw Normal View History

2015-07-04 08:50:04 +00:00
# Config file for automatic testing at travis-ci.org
2014-01-05 09:34:10 +00:00
2015-07-04 08:50:04 +00:00
language: python
2014-01-05 09:34:10 +00:00
2015-07-04 08:50:04 +00:00
sudo: false
2015-06-28 15:36:02 +00:00
2015-07-04 08:50:04 +00:00
python:
- 3.4
- 3.3
- 2.7
- 2.6
2014-06-10 23:08:27 +00:00
2015-07-04 08:50:04 +00:00
env:
2014-06-10 23:08:27 +00:00
matrix:
2015-07-04 08:50:04 +00:00
- DJANGO='django16' CMS='cms30'
- DJANGO='django16' CMS='cms31'
- DJANGO='django16' CMS='cms32'
- DJANGO='django17' CMS='cms30'
- DJANGO='django17' CMS='cms31'
- DJANGO='django17' CMS='cms32'
2015-07-19 08:14:19 +00:00
- DJANGO='django18' CMS='cms31'
- DJANGO='django18' CMS='cms32'
2015-07-18 14:55:46 +00:00
- TOXENV='pep8'
- TOXENV='isort'
2015-07-04 08:50:04 +00:00
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -U tox>=1.8 coveralls
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then export PYVER=py26; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PYVER=py27; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then export PYVER=py33; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then export PYVER=py34; fi"
2015-07-18 14:55:46 +00:00
- "if [[ ${DJANGO}z != 'z' ]]; then export TOXENV=$PYVER-$DJANGO-$CMS; fi"
2015-07-04 08:50:04 +00:00
# command to run tests, e.g. python setup.py test
2015-07-18 14:55:46 +00:00
script: COMMAND='coverage run' tox -e$TOXENV
2015-07-04 08:50:04 +00:00
after_success: coveralls
matrix:
exclude:
- python: 2.6
env: DJANGO='django17' CMS='cms30'
- python: 2.6
env: DJANGO='django17' CMS='cms31'
- python: 2.6
env: DJANGO='django17' CMS='cms32'
- python: 2.6
env: DJANGO='django18' CMS='cms31'
- python: 2.6
env: DJANGO='django18' CMS='cms32'
allow_failures:
- python: 2.6
env: DJANGO='django16' CMS='cms32'
- python: 2.7
env: DJANGO='django16' CMS='cms32'
- python: 2.7
env: DJANGO='django17' CMS='cms32'
2015-07-19 08:14:19 +00:00
- python: 2.7
env: DJANGO='django18' CMS='cms32'
2015-07-04 08:50:04 +00:00
- python: 3.3
env: DJANGO='django16' CMS='cms32'
- python: 3.3
env: DJANGO='django17' CMS='cms32'
2015-07-19 08:14:19 +00:00
- python: 3.3
env: DJANGO='django18' CMS='cms32'
2015-07-04 08:50:04 +00:00
- python: 3.4
env: DJANGO='django16' CMS='cms32'
- python: 3.4
2015-07-19 08:14:19 +00:00
env: DJANGO='django17' CMS='cms32'
- python: 3.4
env: DJANGO='django18' CMS='cms32'