From 40a584dcc2ec53cee079dfe9bfb17df464487a5e Mon Sep 17 00:00:00 2001 From: Camilla Date: Wed, 11 Dec 2019 15:41:34 +0100 Subject: [PATCH] Adds build status sticker to README and runs test on different Python versions (#84) * Adds build status sticker to README * Adds Python version to test matrix * Adds debug echo message * Adds back Python 3.5.3 to test matrix --- .ci/jobs/defaults.yml | 4 ++++ .ci/run-tests | 4 +++- README.md | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.ci/jobs/defaults.yml b/.ci/jobs/defaults.yml index 2344b56..cd9cc06 100755 --- a/.ci/jobs/defaults.yml +++ b/.ci/jobs/defaults.yml @@ -51,6 +51,10 @@ type: yaml filename: .ci/test-matrix.yml name: TEST_SUITE + - axis: + type: yaml + filename: .ci/test-matrix.yml + name: PYTHON_VERSION yaml-strategy: exclude-key: exclude filename: .ci/test-matrix.yml diff --git a/.ci/run-tests b/.ci/run-tests index 626d127..6e33832 100755 --- a/.ci/run-tests +++ b/.ci/run-tests @@ -1,5 +1,7 @@ #!/usr/bin/env bash +echo $PYTHON_VERSION + if [[ -z $ELASTICSEARCH_VERSION ]]; then echo -e "\033[31;1mERROR:\033[0m Required environment variable [ELASTICSEARCH_VERSION] not set\033[0m" exit 1 @@ -56,7 +58,7 @@ echo -e "\033[1m>>>>> YOUR STEPS HERE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" echo -e "\033[1m>>>>> Build [elastic/eland container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" -docker build --file .ci/Dockerfile --tag elastic/eland . +docker build --file .ci/Dockerfile --tag elastic/eland --build-arg PYTHON_VERSION=${PYTHON_VERSION} . echo -e "\033[1m>>>>> Run [elastic/eland container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" diff --git a/README.md b/README.md index d112b48..98fe25e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + [![Build Status](https://clients-ci.elastic.co/buildStatus/icon?job=elastic%2Beland%2Bmaster)](https://clients-ci.elastic.co/job/elastic+eland+master/) + # What is it? eland is a elasticsearch client Python package to analyse, explore and manipulate data that resides in elasticsearch.