зеркало из https://github.com/mozilla/bedrock.git
Bug 1085476: Enable Travis CI.
This commit is contained in:
Родитель
96571d22af
Коммит
3a78051eb8
|
@ -0,0 +1,2 @@
|
|||
[run]
|
||||
source = bedrock
|
|
@ -0,0 +1,25 @@
|
|||
language: python
|
||||
python:
|
||||
- "2.6"
|
||||
before_script:
|
||||
- flake8 bedrock lib
|
||||
- mysql -e 'create database bedrock_test;'
|
||||
- python manage.py syncdb --noinput --migrate
|
||||
- python manage.py update_product_details
|
||||
- svn checkout https://svn.mozilla.org/projects/mozilla.com/trunk/locales/ locale
|
||||
script: coverage run manage.py test
|
||||
before_install:
|
||||
- git submodule update --init --recursive
|
||||
install:
|
||||
- pip install -r requirements/dev.txt
|
||||
after_success:
|
||||
# Report coverage results to coveralls.io
|
||||
- pip install coveralls
|
||||
- coveralls
|
||||
notifications:
|
||||
irc:
|
||||
channels:
|
||||
- "irc.mozilla.org#www"
|
||||
on_success: change
|
||||
on_failure: always
|
||||
use_notice: true
|
|
@ -4,6 +4,9 @@ bedrock
|
|||
*bedrock* is the code name of the new mozilla.org. It is as shiny,
|
||||
awesome, and open sourcy as always. Perhaps even a little more.
|
||||
|
||||
[![Build Status](https://travis-ci.org/mozilla/bedrock.svg?branch=master)](https://travis-ci.org/mozilla/bedrock)
|
||||
[![Coverage Status](https://img.shields.io/coveralls/mozilla/bedrock.svg)](https://coveralls.io/r/mozilla/bedrock)
|
||||
|
||||
Docs
|
||||
----
|
||||
|
||||
|
|
|
@ -6,8 +6,12 @@ import sys
|
|||
|
||||
from .base import * # noqa
|
||||
|
||||
if os.getenv('JENKINS_HOME', False):
|
||||
if os.getenv('TRAVIS', False):
|
||||
from .travis import * # noqa
|
||||
|
||||
elif os.getenv('JENKINS_HOME', False):
|
||||
from .jenkins import * # noqa
|
||||
|
||||
else:
|
||||
if os.getenv('C9_USER'):
|
||||
from .c9 import * # noqa
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
# flake8: noqa
|
||||
|
||||
import logging
|
||||
|
||||
|
||||
ROOT_URLCONF = 'bedrock.urls'
|
||||
LOG_LEVEL = logging.ERROR
|
||||
|
||||
ADMINS = ('thedude@example.com',)
|
||||
MANAGERS = ADMINS
|
||||
|
||||
# Database name has to be set because of sphinx
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'bedrock_test',
|
||||
'USER': 'travis',
|
||||
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},
|
||||
'TEST_CHARSET': 'utf8',
|
||||
'TEST_COLLATION': 'utf8_general_ci',
|
||||
}
|
||||
}
|
||||
|
||||
HMAC_KEYS = {
|
||||
'2013-01-01': 'prositneujahr',
|
||||
}
|
||||
|
||||
# TEMPLATE_DEBUG has to be True for jingo to call the template_rendered
|
||||
# signal which Django's test client uses to save away the contexts for your
|
||||
# test to look at later.
|
||||
TEMPLATE_DEBUG = True
|
|
@ -11,6 +11,7 @@ mock==1.0.1
|
|||
-e git://github.com/jbalogh/test-utils.git#egg=test-utils
|
||||
pyquery==1.0
|
||||
factory_boy==2.2.1
|
||||
coverage==3.6
|
||||
|
||||
# L10n
|
||||
translate-toolkit==1.8.0
|
||||
|
|
Загрузка…
Ссылка в новой задаче