This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
39 lines (37 loc) · 1.26 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
language: python
sudo: required
matrix:
include:
# Current production
- python: '2.7'
env: ELASTICSEARCH_VERSION=1.4.4
- python: "3.5"
env: ELASTICSEARCH_VERSION=1.4.4
# Latest in 1.X line (as of 2016-02-10). For speed, just run future ES version with latest Python
- python: '3.5'
env: ELASTICSEARCH_VERSION=1.7.5
cache:
directories:
- $HOME/.cache/pip
services:
- postgresql
addons:
postgresql: "9.4"
before_install:
# Use same ES version as in production (also the Travis "elasticsearch" service setting fails to start)
- travis_retry curl -OL https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.deb
- sudo dpkg -i --force-confnew elasticsearch-$ELASTICSEARCH_VERSION.deb
- sudo service elasticsearch start
install:
- travis_retry pip install -e .
- travis_retry pip install "file://$(pwd)#egg=django-bulbs[dev]"
before_script:
- psql -c "create database bulbs_test;" -U postgres
- psql -c "create user bulbs WITH superuser PASSWORD 'testing';" -U postgres
# Wait for ES startup
- until curl http://localhost:9200/; do sleep 1; done
script:
- py.test --cov bulbs --cov-report term-missing
- scripts/lint
after_success:
- coveralls