Skip to content

Commit 6dd2207

Browse files
authored
Merge pull request #4 from afoucret/circle-ci-config
Add the Circle CI configuration.
2 parents 4ae31ab + a2cf3d4 commit 6dd2207

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
3+
version: 2.1
4+
5+
executors:
6+
python-27: {docker: [{image: 'python:2.7'}]}
7+
python-35: {docker: [{image: 'python:3.5'}]}
8+
python-36: {docker: [{image: 'python:3.6'}]}
9+
python-37: {docker: [{image: 'python:3.7'}]}
10+
11+
jobs:
12+
build:
13+
parameters:
14+
executor:
15+
type: executor
16+
executor: << parameters.executor >>
17+
working_directory: ~/repo
18+
steps:
19+
- checkout
20+
- restore_cache:
21+
keys:
22+
- v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "requirements.txt" }}
23+
- run:
24+
name: install dependencies
25+
command: |
26+
pip install virtualenv
27+
virtualenv venv
28+
. venv/bin/activate
29+
python setup.py install
30+
- save_cache:
31+
paths:
32+
- ./venv
33+
key: v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "requirements.txt" }}
34+
- run:
35+
name: run tests
36+
command: |
37+
. venv/bin/activate
38+
python setup.py test
39+
40+
workflows:
41+
run-tests:
42+
jobs:
43+
- build: {name: run-tests-python-2.7, executor: python-27}
44+
- build: {name: run-tests-python-3.5, executor: python-35}
45+
- build: {name: run-tests-python-3.6, executor: python-36}
46+
- build: {name: run-tests-python-3.7, executor: python-37}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center"><img src="https://github.com/elastic/site-search-python/blob/master/logo-site-search.png?raw=true" alt="Elastic Site Search Logo"></p>
22

3-
<p align="center"><a href="https://travis-ci.org/elastic/site-search-python"><img src="https://travis-ci.org/elastic/site-search-python.png?branch=master" alt="Travis build"></a>
3+
<p align="center"><a href="https://circleci.com/gh/elastic/site-search-python"><img src="https://img.shields.io/circleci/build/github/elastic/site-search-python/master" alt="CircleCI build"></a>
44
<a href="https://github.com/elastic/site-search-python/releases"><img src="https://img.shields.io/github/release/elastic/site-search-python/all.svg?style=flat-square" alt="GitHub release" /></a></p>
55

66
> A first-party Python client for the [Elastic Site Search API](https://elastic.co/products/site-search).

0 commit comments

Comments
 (0)