Skip to content

Commit 4538df2

Browse files
authored
Testing changes for Jenkins CI (elastic#863)
* testing * more fixes * downgrade docker-compose file version cause jenkins * fixing matrix * back to elasticsearch_version * skip py3.7 for now there's a bug * add build badge and remove 3.3 Sphinx doesn't play nice with 3.3 * sphinx 1.7 drops support for python 3.3 * updating test matrix * remove travis * updating badges
1 parent c0d5f28 commit 4538df2

File tree

7 files changed

+24
-46
lines changed

7 files changed

+24
-46
lines changed

.ci/run-tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
#
1212

1313
# TODO: implement the docker-based testing
14-
cd .. && make run_tests
14+
make run_tests

.ci/test-matrix.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@ ELASTICSEARCH_VERSION:
88

99

1010
PYTHON_VERSION:
11-
- 3
12-
- 2.7
1311
- 2.6
12+
- 2.7
13+
- 3.3
14+
- 3.4
15+
- 3.5
16+
- 3.6
17+
- 3.7
1418

1519
exclude:
1620
# since a base image for python2.6 doens't exist i need to create one.
1721
- PYTHON_VERSION: 2.6
22+
# Something is wrong with the way 3.7 and the es-client handle multiprocessing.
23+
# https://github.com/elastic/elasticsearch-py/issues/865
24+
- PYTHON_VERSION: 3.7
25+
# new feature in 6.4.2 which is causing a test failure.
26+
# https://github.com/elastic/elasticsearch-py/issues/866
27+
- ELASTICSEARCH_VERSION: 6.4.2
1828

.travis.yml

-34
This file was deleted.

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ build:
55
PYTHON_VERSION=${PYTHON_VERSION} docker-compose build client
66

77
pull:
8-
ELASTIC_VERSION=${ELASTIC_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose pull
8+
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose pull
99

1010
push:
1111
# requires authentication.
1212
PYTHON_VERSION=${PYTHON_VERSION} docker-compose push client
1313

1414
run_tests:
15-
ELASTIC_VERSION=${ELASTIC_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose run client python setup.py test
15+
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose run client python setup.py test
1616

1717
start_elasticsearch:
18-
ELASTIC_VERSION=${ELASTIC_VERSION} docker-compose up -d elasticsearch
18+
ELASTICSEARCH_VERSION=${ELASTICSEARCH_VERSION} docker-compose up -d elasticsearch

README

+4-2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ limitations under the License.
141141

142142
Build status
143143
------------
144+
.. image:: https://readthedocs.org/projects/elasticsearch-py/badge/?version=latest&style=flat
145+
:target: https://elasticsearch-py.readthedocs.io/en/master/
144146

145-
.. image:: https://secure.travis-ci.org/elastic/elasticsearch-py.png
146-
:target: https://travis-ci.org/elastic/elasticsearch-py
147+
.. image:: https://clients-ci.elastic.co/job/elastic+elasticsearch-py+master/badge/icon
148+
:target: https://clients-ci.elastic.co/job/elastic+elasticsearch-py+master/

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
version: '3.3'
1+
version: '3.2'
22
services:
33
client:
44
image: docker.elastic.co/clients/elasticsearch-py:${PYTHON_VERSION:-3}
55
build:
66
context: .
7-
dockerfile: Dockerfile
7+
dockerfile: ./Dockerfile
88
args:
99
PYTHON_VERSION: ${PYTHON_VERSION:-3}
1010
environment:
@@ -18,7 +18,7 @@ services:
1818
- elasticsearch
1919
command: ["true"] # dummy command to override the command in the Dockerfile and do nothing.
2020
elasticsearch:
21-
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTIC_VERSION:-6.2.4}
21+
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTICSEARCH_VERSION:-6.2.4}
2222
volumes:
2323
- esvol:/tmp
2424
networks:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
tests_require=tests_require,
6565

6666
extras_require={
67-
'develop': tests_require + ["sphinx", "sphinx_rtd_theme"],
67+
'develop': tests_require + ["sphinx<1.7", "sphinx_rtd_theme"],
6868
'requests': ['requests>=2.4.0, <3.0.0']
6969
},
7070
)

0 commit comments

Comments
 (0)