forked from superdesk/superdesk-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (39 loc) · 1.14 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
language: python
sudo: required
python:
- "3.4"
- "3.5"
services:
- elasticsearch
- mongodb
- redis-server
addons:
apt:
sources:
- mongodb-3.0-precise
- elasticsearch-1.7
packages:
- mongodb-org-server
- elasticsearch
cache:
- pip
install:
- pip install .
- pip install -r requirements.txt
- pip install nose-timer
before_script: >
df -h
&& sudo sed -i 's\enabled: true\enabled: false\' /etc/mongod.conf
&& sudo service mongod restart
&& mkdir /tmp/es-backups
&& sudo chown elasticsearch:elasticsearch /tmp/es-backups
&& echo "path.repo: ['/tmp/es-backups']" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
&& echo "index.store.type: memory" | sudo tee -a /etc/elasticsearch/elasticsearch.yml
&& sudo service elasticsearch restart
&& tail -n1 /etc/elasticsearch/elasticsearch.yml
&& sleep 10
&& curl -XPUT 'http://localhost:9200/_snapshot/backups' -d '{"type": "fs", "settings": {"location": "/tmp/es-backups"}}'
script:
- flake8
- time nosetests -v --with-timer --with-id
- time behave --format progress2 --logging-clear-handlers --logcapture