forked from scythargon/model_mommy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.01 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
sudo: true
language: python
dist: trusty
python:
- "2.7"
- "3.5"
- "3.6"
env:
- DJANGO=django18
- DJANGO=django19
- DJANGO=django110
- DJANGO=django111
- DJANGO=django20
matrix:
exclude:
- python: "2.7"
env: DJANGO=django20
before_install:
- sudo apt-get update && sudo apt-get build-dep python-imaging
- sudo service postgresql restart
install:
- pip install tox
addons:
postgresql: "9.6"
apt:
packages:
- postgresql-9.6-postgis-2.3
services:
- postgresql
before_script:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "create extension hstore"
- psql -U postgres template1 -c "create extension citext"
- psql -c 'create database model_mommy;' -U postgres
- psql -c 'create database model_mommy_test;' -U postgres
script:
- TOX_TEST_PASSENV="TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH" tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO-{postgresql}
- TOX_TEST_PASSENV="TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH" tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO-{sqlite}