-
Notifications
You must be signed in to change notification settings - Fork 134
/
.travis.yml.disabled
49 lines (44 loc) · 1.31 KB
/
.travis.yml.disabled
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
sudo: required
dist: xenial
language: python
addons:
postgresql: 9.6
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:
- '3.6'
services:
- postgresql
env:
- TESTFOLDER="onadata/libs onadata/apps/main onadata/apps/restservice onadata/apps/sms_support onadata/apps/viewer onadata/apps/messaging"
- TESTFOLDER="onadata/apps/api onadata/apps/logger"
before_install:
- export DEBIAN_FRONTEND=noninteractive;
- sudo rm -f /etc/apt/sources.list.d/mongodb-3.4.list
- sudo -E apt-get -y update
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends install postgresql-9.6-postgis-2.4
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends install openjdk-8-jre-headless
- ./script/database/install_postgis onadata_test postgres 127.0.0.1
install:
- pip install --upgrade pip setuptools
- pip install -r requirements/base.pip
- pip install flake8
script:
- python manage.py test $TESTFOLDER --noinput --settings=onadata.settings.travis_test --parallel 4 --verbosity=2
notifications:
slack: onaio:snkNXgprD498qQv4DgRREKJF