forked from onaio/onadata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (45 loc) · 1.29 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
39
40
41
42
43
44
45
46
47
48
49
50
sudo: required
dist: trusty
language: python
addons:
postgresql: 9.4
apt:
packages:
- libjpeg-dev
- zlib1g-dev
- python-software-properties
- ghostscript
- libxslt1-dev
- binutils
- libproj-dev
- libgdal1-dev
- gdal-bin
- memcached
- libmemcached-dev
cache:
apt: true
directories:
- $HOME/.pip-cache/
python:
- '2.7.10'
services:
- postgresql
env:
- TESTFOLDER="onadata/libs onadata/apps/main onadata/apps/restservice onadata/apps/sms_support onadata/apps/viewer"
- TESTFOLDER="onadata/apps/api onadata/apps/logger"
before_install:
- export DEBIAN_FRONTEND=noninteractive;
- sudo -E apt-get -yq update &>> ~/apt-get-update.log;
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install postgresql-9.4-postgis-2.3
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install openjdk-8-jdk
- ./script/database/install_postgis onadata_test postgres 127.0.0.1
install:
- pip install --upgrade pip
- pip install -r requirements/base.pip
- pip install flake8
script:
- python manage.py test $TESTFOLDER --noinput --settings=onadata.settings.travis_test --parallel 4
notifications:
email:
slack: onaio:snkNXgprD498qQv4DgRREKJF