2015-02-26 19:51:43 +03:00
|
|
|
sudo: false
|
2013-06-25 18:00:48 +04:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "2.7"
|
2015-03-10 23:41:13 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
2015-03-13 17:55:32 +03:00
|
|
|
- $HOME/virtualenv/python2.7.9
|
2015-05-25 19:24:59 +03:00
|
|
|
- node_modules
|
2013-06-25 18:00:48 +04:00
|
|
|
env:
|
2013-06-25 21:05:18 +04:00
|
|
|
global:
|
2015-07-09 17:11:55 +03:00
|
|
|
- DATABASE_URL='mysql://root@localhost/treeherder'
|
|
|
|
- DATABASE_URL_RO='mysql://root@localhost/treeherder'
|
2015-08-27 15:04:12 +03:00
|
|
|
- TREEHERDER_DJANGO_SECRET_KEY='secretkey-1234'
|
2013-06-25 18:00:48 +04:00
|
|
|
services:
|
|
|
|
- rabbitmq
|
2013-11-21 04:59:42 +04:00
|
|
|
- memcached
|
2013-06-25 18:00:48 +04:00
|
|
|
install:
|
2015-05-25 19:24:59 +03:00
|
|
|
- npm install
|
2015-05-28 11:40:20 +03:00
|
|
|
- ./bin/peep.py install -r requirements/common.txt -r requirements/dev.txt
|
2015-02-26 21:48:08 +03:00
|
|
|
before_script:
|
2015-03-13 19:24:35 +03:00
|
|
|
- flake8 --show-source
|
2015-09-22 00:06:58 +03:00
|
|
|
- isort --check-only --diff --quiet
|
2015-07-14 20:33:07 +03:00
|
|
|
- grunt checkjs
|
2015-05-25 19:24:59 +03:00
|
|
|
# Required for Karma tests (http://docs.travis-ci.com/user/gui-and-headless-browsers/)
|
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2015-02-26 21:48:08 +03:00
|
|
|
- mysql -e 'create database treeherder;'
|
2013-06-25 18:00:48 +04:00
|
|
|
script:
|
2015-05-25 19:24:59 +03:00
|
|
|
- npm test
|
2015-02-26 22:29:33 +03:00
|
|
|
- py.test tests/$* --runslow
|
2015-10-01 23:43:49 +03:00
|
|
|
- ./node_modules/.bin/grunt build --production
|
2013-06-27 20:57:44 +04:00
|
|
|
notifications:
|
2015-03-08 18:00:57 +03:00
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
on_failure: always
|
2015-05-25 19:24:59 +03:00
|
|
|
|
|
|
|
# Do not run these on the travis server at this time.
|
|
|
|
# The end to end tests require the service to be running, but travis can't
|
|
|
|
# start the service for us. So we would have to have the default point to
|
|
|
|
# a dedicated dev service instance that is reach-able by travis. However, we
|
|
|
|
# require /etc/hosts to have an entry at this point to reach our current dev
|
|
|
|
# server. So these tests should be run only locally for now.
|
|
|
|
# - karma start config/karma-e2e.conf.js --reporters=dots --browsers=Firefox
|