forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
sudo: false
language: python
python:
- "2.7"
node_js:
- "0.12"
branches:
only:
- master
cache:
directories:
- $HOME/.cache/pip
- node_modules
before_script:
- flake8 bedrock lib tests
- python manage.py runscript check_calendars
- mysql -e 'create database bedrock_test;'
- python manage.py version
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput -v 0
- travis_retry npm install
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- grunt test
- python manage.py test
- py.test test_redirects
before_install:
- travis_retry git submodule update --init --recursive
install:
- travis_retry pip install -r requirements/pip.txt
- travis_retry python bin/peep.py install -r requirements/dev.txt --no-use-wheel
- travis_retry python bin/peep.py install -r requirements/prod.txt --no-use-wheel
- travis_retry python bin/peep.py install -r requirements/test_redirects.txt --no-use-wheel
notifications:
irc:
channels:
- "irc.mozilla.org#www"
on_success: change
on_failure: always
use_notice: true
addons:
firefox: "35.0"