forked from zsiciarz/django-pgallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 857 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
sudo: false
language: python
addons:
postgresql: "9.4"
env:
- TOXENV=py27-dj18 DATABASE_USER="postgres" DATABASE_PASSWORD=""
- TOXENV=py33-dj18 DATABASE_USER="postgres" DATABASE_PASSWORD=""
- TOXENV=py34-dj18 DATABASE_USER="postgres" DATABASE_PASSWORD=""
- TOXENV=py27-dj19 DATABASE_USER="postgres" DATABASE_PASSWORD=""
- TOXENV=py34-dj19 DATABASE_USER="postgres" DATABASE_PASSWORD=""
- TOXENV=coverage DATABASE_USER="postgres" DATABASE_PASSWORD=""
install:
- pip install pip setuptools --upgrade
- pip install tox
- if [ "$TOXENV" = "coverage" ]; then pip install coveralls; fi
before_script:
- psql -c 'create extension hstore;' -U postgres -d template1
- psql -c 'create database pgallery;' -U postgres
script:
- export PYTHONPATH=$PYTHONPATH:`pwd`
- tox
after_success:
- if [ "$TOXENV" = "coverage" ]; then coveralls; fi