-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
38 lines (38 loc) · 1.04 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
file: .travis.yml
language: python
python:
- "3.6"
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
env:
global:
- DEBUG=True
- BASE_URL=localhost:8000
- PGPORT=5432
- ES_VERSION=6.6.1
- ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
- ELASTICSEARCH_HOST=127.0.0.1
- ELASTICSEARCH_AUTH=elastic:changeme
services:
- postgresql
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- sudo sysctl -w vm.max_map_count=262144
- sudo service elasticsearch start
- mkdir logging
- chmod -R 777 logging
install:
- wget ${ES_DOWNLOAD_URL}
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch &
- pip install -r requirements-dev.txt
script:
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
- ./manage.py check
- coverage run --source='.' ./manage.py test app/tests --settings=scratch.test_settings
after_success:
- coveralls