This repository has been archived by the owner on Jan 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
44 lines (33 loc) · 1.21 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
language: python
python:
- "2.7"
sudo: false
env:
- DJANGO=1.5.12 POSTGRES_TEST_USER=postgres POSTGRES_TEST_NAME=avocado MYSQL_TEST_USER=root MYSQL_TEST_NAME=avocado
- DJANGO=1.6.10 POSTGRES_TEST_USER=postgres POSTGRES_TEST_NAME=avocado MYSQL_TEST_USER=root MYSQL_TEST_NAME=avocado
- DJANGO=1.7.6 POSTGRES_TEST_USER=postgres POSTGRES_TEST_NAME=avocado MYSQL_TEST_USER=root MYSQL_TEST_NAME=avocado
- DJANGO=1.8.16 POSTGRES_TEST_USER=postgres POSTGRES_TEST_NAME=avocado MYSQL_TEST_USER=root MYSQL_TEST_NAME=avocado
services:
- memcached
- redis-server
addons:
- postgres
before_install:
- bash bin/check_signoff.sh
- pip install -q flake8==2.6.2
- flake8
install:
- pip install coverage Django==$DJANGO
- pip install -r requirements.txt
before_script:
- psql -U postgres -c 'CREATE DATABASE avocado;'
- mysql -u root -e 'CREATE DATABASE IF NOT EXISTS avocado;'
script:
- coverage run test_suite.py --sqlite --mysql --postgres
after_success:
- pip install -q coveralls
- coveralls
matrix:
exclude:
- python: "2.6"
env: DJANGO=1.7.6 POSTGRES_TEST_USER=postgres POSTGRES_TEST_NAME=avocado MYSQL_TEST_USER=root MYSQL_TEST_NAME=avocado