forked from mozilla/mozillians
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (35 loc) · 832 Bytes
/
.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
language: python
dist: trusty
sudo: false
python:
- "2.7"
env:
DATABASE_URL=mysql://[email protected]/mozillians
BASKET_URL=http://127.0.0.1
BASKET_API_KEY=basket_api_key
COMPRESS_ENABLED=False
COMPRESS_OFFLINE=False
SECRET_KEY='supersecretkey'
ALLOWED_HOSTS=localhost
DEBUG=True
CELERY_TASK_ALWAYS_EAGER=True
DEV=True
services:
- elasticsearch
- mysql
before_install:
- pip install flake8
- flake8 mozillians
- mysql -e 'create database mozillians character set utf8; SET @@GLOBAL.wait_timeout=28800;'
- export BOTO_CONFIG=/dev/null
cache:
- pip
install:
- npm install -g less
- pip install coverage
- pip install --require-hashes --no-deps -r requirements/dev.txt
script:
- coverage run --source=mozillians manage.py test --noinput
after_success:
- pip install coveralls
- coveralls