@@ -32,25 +32,26 @@ before_install:
32
32
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html#deb-repo
33
33
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
34
34
- >
35
- if [[ $VERSION_ES == '>=2.0.0,<3.0.0' ]];
36
- then
37
- echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
38
- sudo apt-get update
39
- sudo apt-get -qy --allow-downgrades install elasticsearch=2.4.6
40
- elif [[ $VERSION_ES == '>=5.0.0,<6.0.0' ]];
41
- then
42
- echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-5.x.list
43
- sudo apt-get update -qy
44
- sudo apt-get -y --allow-downgrades install elasticsearch=5.6.10
45
- else
46
- echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
47
- sudo apt-get update -qy
48
- sudo apt-get -qy --allow-downgrades install elasticsearch=1.7.6
49
- fi
35
+ if [[ $VERSION_ES == '>=2.0.0,<3.0.0' ]];
36
+ then
37
+ echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
38
+ sudo apt-get update
39
+ sudo apt-get -qy --allow-downgrades install elasticsearch=2.4.6
40
+ elif [[ $VERSION_ES == '>=5.0.0,<6.0.0' ]];
41
+ then
42
+ echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-5.x.list
43
+ sudo apt-get update -qy
44
+ sudo apt-get -y --allow-downgrades install elasticsearch=5.6.10
45
+ else
46
+ echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
47
+ sudo apt-get update -qy
48
+ sudo apt-get -qy --allow-downgrades install elasticsearch=1.7.6
49
+ fi
50
50
- sudo service elasticsearch restart
51
51
52
52
install :
53
53
- pip install --upgrade setuptools
54
+ - pip install codecov coverage
54
55
- pip install requests "Django${DJANGO_VERSION}" "elasticsearch${VERSION_ES}"
55
56
- python setup.py clean build install
56
57
@@ -59,7 +60,10 @@ before_script:
59
60
60
61
script :
61
62
- python test_haystack/solr_tests/server/wait-for-solr
62
- - python setup.py test
63
+ - coverage run setup.py test
64
+
65
+ after_success :
66
+ - codecov
63
67
64
68
env :
65
69
matrix :
@@ -108,5 +112,5 @@ matrix:
108
112
env : DJANGO_VERSION=">=2.1,<2.2" VERSION_ES=">=1.0.0,<2.0.0"
109
113
110
114
notifications :
111
- irc : " irc.freenode.org#haystack"
115
+ irc : ' irc.freenode.org#haystack'
112
116
email : false
0 commit comments