-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
49 lines (42 loc) · 1.36 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
dist: trusty
notifications:
email: false
language: python
python: 2.7
cache: pip
addons:
postgresql: "9.6"
apt:
packages:
- yui-compressor
- postgresql-9.6-postgis-2.3
# This is needed so that pg_config works for psycopg2's version detection
- postgresql-server-dev-9.6
- antiword
- pdftohtml
install:
- wget ${ES_DOWNLOAD_URL}
- tar xzf elasticsearch-${ES_VERSION}.tar.gz
- elasticsearch-${ES_VERSION}/bin/elasticsearch &
- pip install -U pip
- bundle update json
- bundle install --deployment --path data/gems --binstubs data/gem-bin
# Now install the rest of the required Python packages:
- CFLAGS="-O0" pip install -r requirements.txt
# - pip check
# Create a basic general.yml file:
- sed -r
-e "s,(POMBOLA_DB_USER:) 'sayit',\\1 'postgres',"
-e "s,(POMBOLA_DB_NAME:) '',\\1 'pombola',"
-e "s,(DJANGO_SECRET_KEY:) '',\\1 'notatallsecret',"
conf/general.yml-example > conf/general.yml
before_script:
- createdb -U postgres pombola
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d pombola
- ./manage.py migrate --noinput
- ./manage.py collectstatic --noinput
script:
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
- ./run-tests
env:
- ES_VERSION=0.90.13 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz