forked from stabiitb/oksp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (31 loc) · 881 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
36
37
38
39
40
language: python
python:
- 3.5
services:
- postgresql
- memcached
addons:
postgresql: "9.4"
env:
- DJANGO=1.9.4
before_install:
- export DJANGO_SETTINGS_MODULE=oksp.settings.production
- export PYTHONPATH=$HOME/stabiitb/oksp
install:
- pip install -r requirements/production.txt
- pip install coverage
- pip install isort
- pip install python-coveralls
before_script:
- psql -c 'create database oksp;' -U postgres
- psql -c "create user oksp with password 'oksp' createdb;" -U postgres
- psql -c 'grant all privileges on database oksp to oksp;' -U postgres
script:
- cp oksp/settings/conf.sample.py oksp/settings/conf.py
- python manage.py check
- isort -rc --check-only --diff .
- python manage.py collectstatic --noinput
- python manage.py migrate --noinput
- coverage run --source '.' manage.py test
after_success:
- coveralls