2014-02-14 13:03:29 +01:00
|
|
|
# Python releases to test
|
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 2.7
|
|
|
|
# Django releases
|
|
|
|
env:
|
|
|
|
- DJANGO_VERSION=Django==1.6.1
|
|
|
|
# Services
|
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
- elasticsearch
|
|
|
|
# Package installation
|
2014-02-14 13:15:34 +01:00
|
|
|
install:
|
|
|
|
- python setup.py install
|
2014-02-14 13:43:03 +01:00
|
|
|
- pip install psycopg2 pyelasticsearch elasticutils
|
2014-02-17 17:30:39 +01:00
|
|
|
- pip install coveralls
|
2014-02-14 13:03:29 +01:00
|
|
|
# Pre-test configuration
|
|
|
|
before_script:
|
2014-02-14 13:26:44 +01:00
|
|
|
- psql -c 'create database wagtaildemo;' -U postgres
|
2014-02-14 13:03:29 +01:00
|
|
|
# Run the tests
|
2014-02-17 17:30:39 +01:00
|
|
|
script:
|
2014-02-17 19:10:55 +01:00
|
|
|
coverage run --source=wagtail --omit=*/migrations/*,*/vendor/* runtests.py
|
2014-02-17 17:30:39 +01:00
|
|
|
after_success:
|
|
|
|
coveralls
|
2014-02-14 13:03:29 +01:00
|
|
|
# Who to notify about build results
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- wagtail-ci@torchbox.com
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2014-02-14 14:26:17 +01:00
|
|
|
webhooks:
|
|
|
|
urls:
|
2014-02-14 18:35:57 +01:00
|
|
|
- secure: "dQZBPlCC2OQE2L7EqOMkKsQxCJm05BhFrfmKmJ0AnKqxiEyZDKd2JiQaMg8X7XtIdJ87dlnBZH5h3erPSMgI3mIfNCWKKs/f6idgWIXPpklzU95KmPOrCoOyT3lkDTEOXCYXhgvOExp8qLHc4qjEWbSoIfPwqYyPlGry3Z76UBM="
|
2014-02-14 14:26:17 +01:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2014-02-14 13:15:34 +01:00
|
|
|
|