forked from mozilla/ActiveData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (32 loc) · 1 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
language: python
python:
- 3.9
branches:
only:
- master
- dev
env:
global:
- ES_VERSION=6.5.4
- ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$ES_VERSION.tar.gz
install:
- "wget $ES_DOWNLOAD_URL"
- "tar -xzf elasticsearch-$ES_VERSION.tar.gz"
- "sudo cp -f tests/travis/elasticsearch.yml ./elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
- "./elasticsearch-$ES_VERSION/bin/elasticsearch &"
- "pip install -r requirements.txt"
- "pip install coverage"
- "pip install coveralls"
- "sudo rm -f /etc/boto.cfg"
- "wget -q --wait=10 --retry-connrefused -T 10 -O - http://127.0.0.1:9200"
# command to run tests
script:
- "export PYTHONPATH=.:vendor"
- "coverage run ./active_data/app.py --settings=tests/travis/app.json &"
- "sleep 5"
- "export TEST_CONFIG=tests/travis/app.json"
- "coverage run -m unittest discover tests --failfast"
- "curl http://localhost:5000/exit"
- "wait `cat activedata.pid`"
after_success:
- coveralls