51c2c9f7ac
* In preperation for moving to Elastic's CI Add dockerfile to build image for testing python client in a docker container add docker-compose to create environment for running tests against specific versions of ES Add Makefile to make it easy to execute tests and cleanup add wait-for-elasticsearch.sh script to wait for elasticsearch before executing the tests. * add pull and comment about pushing requring auth * spelling errors * adding CI directory for jenkins to pick up fixing typo too * fix test-matrix and create working run-tests * add comment about why skipping python 2.6 * adding dockerfiles to create base images for ci
19 lines
538 B
Makefile
19 lines
538 B
Makefile
clean:
|
|
docker-compose down --remove-orphans --volumes
|
|
|
|
build:
|
|
PYTHON_VERSION=${PYTHON_VERSION} docker-compose build client
|
|
|
|
pull:
|
|
ELASTIC_VERSION=${ELASTIC_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose pull
|
|
|
|
push:
|
|
# requires authentication.
|
|
PYTHON_VERSION=${PYTHON_VERSION} docker-compose push client
|
|
|
|
run_tests:
|
|
ELASTIC_VERSION=${ELASTIC_VERSION} PYTHON_VERSION=${PYTHON_VERSION} docker-compose run client python setup.py test
|
|
|
|
start_elasticsearch:
|
|
ELASTIC_VERSION=${ELASTIC_VERSION} docker-compose up -d elasticsearch
|