forked from openhatch/oh-mainline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (30 loc) · 867 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
python:
- "2.6"
- "2.7"
env:
- USE_MYSQL=true
- USE_MYSQL=
services:
- mysql
matrix:
allow_failures:
- env: USE_MYSQL=true
install:
# Install coveralls to test code coverage
- sudo pip install coveralls
# Copy libz.so into the virtualenv so that PIL can build PNG support
- sudo cp /usr/lib/*/libz.so $VIRTUAL_ENV/lib
# command to run tests
script: coverage run --source="mysite" manage.py test
# Get development headers for PIL
before_install:
- deactivate # We are having problems with using Pillow in a virtualenv
- sudo apt-get update -qq
- sudo apt-get build-dep -qq python-imaging
- sudo apt-get install libjpeg-dev python-mysqldb
- git config --global user.name TravisDummy
- git config --global user.email [email protected]
before_script:
- mysql -e 'create database oh_milestone_a'
after_success: coveralls