-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
30 lines (30 loc) · 1.16 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
language: python
group: deprecated-2017Q1
dist: precise
addons:
postgresql: "9.3"
python:
- "2.7"
before_install:
- sudo apt-get -y update
install:
- sudo apt-get -y install libgdal-dev
- pip install fiona
- sudo apt-get -y install libgdal1
- sudo apt-get -y install python-dev build-essential python-dbus python-gst0.10 postgresql-server-dev-9.3 postgresql-9.3-postgis-2.1
- sudo su - postgres -c 'psql -c "create role round superuser login;"'
- sudo su - postgres -c 'psql -c "create database roundware"'
- sudo su - postgres -c 'psql -c "grant all on database roundware to round"'
- sudo su - postgres -c "psql -c \"alter user round password 'round'\""
- sudo su - postgres -c "psql roundware -c 'create extension postgis'"
- pip install -r requirements/dev.txt
- sudo apt-get install --reinstall python-setuptools
before_script:
# Setup Roundware log file.
- sudo touch /var/log/roundware
- sudo chmod 777 /var/log/roundware
# Setup rwmedia directory for mock files.
- sudo mkdir /var/www
- sudo chmod 777 /var/www
- export PYTHONPATH=.:/usr/lib/python2.7/dist-packages/
script: python roundware/manage.py test --settings=roundware.settings.testing