forked from openhatch/oh-mainline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (26 loc) · 817 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
language: python
python:
- "2.7"
env:
- USE_MYSQL=true
- USE_MYSQL=
services:
- mysql
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 dummy@travis-ci.orgo
before_script:
- mysql -uroot < ./mysite/scripts/database_01_create.sql
after_success: coveralls