forked from mdn/kuma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.22 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
44
45
46
47
48
sudo: required
branches:
only:
- master
cache:
apt: true
directories:
- $HOME/.cache/pip
language: python
python:
- "2.7"
services:
- docker
- memcached
env:
matrix:
- TOXENV=py27
- TOXENV=flake8
- TOXENV=docs
- TOXENV=locales DOCKER_COMPOSE_VERSION=1.9.0
- TOXENV=docker DOCKER_COMPOSE_VERSION=1.9.0
global:
- DJANGO_SETTINGS_MODULE=kuma.settings.travis
- DEBIAN_FRONTEND=noninteractive
- DATABASE_URL=mysql://root:kuma@localhost:3306/kuma
- CFLAGS=-O0
matrix:
allow_failures:
- env: TOXENV=locales DOCKER_COMPOSE_VERSION=1.9.0
- env: TOXENV=docker DOCKER_COMPOSE_VERSION=1.9.0
before_install:
- scripts/travis-install
- pip install -U pip
install:
- pip install -r requirements/travis.txt
- if [[ $TOXENV == 'py27' ]]; then ansible-playbook -vvv --tags=mysql,pipeline --connection=local --inventory-file=provisioning/inventory provisioning/travis.yml; fi
script: tox -v
after_failure:
- dmesg | tail
after_success:
- codecov
notifications:
irc:
channels:
- "irc.mozilla.org#mdndev"
on_success: always
on_failure: always
use_notice: true