From 4eefd6b0dc77e00c627ab2674ae27c0c493d2282 Mon Sep 17 00:00:00 2001 From: Shaun Crampton Date: Tue, 2 Aug 2016 11:12:27 +0100 Subject: [PATCH] Add CircleCI config. --- README.md | 1 + circle.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 circle.yml diff --git a/README.md b/README.md index de857318325..c5788c3ef9a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![CircleCI](https://circleci.com/gh/projectcalico/calico.svg?style=svg)](https://circleci.com/gh/projectcalico/calico) [![Coverage Status](https://coveralls.io/repos/projectcalico/calico/badge.svg?branch=master&service=github)](https://coveralls.io/github/projectcalico/calico?branch=master) [![Slack Status](https://slack.projectcalico.org/badge.svg)](https://slack.projectcalico.org) [![IRC Channel](https://img.shields.io/badge/irc-%23calico-blue.svg)](https://kiwiirc.com/client/irc.freenode.net/#calico) diff --git a/circle.yml b/circle.yml new file mode 100644 index 00000000000..8e4960ed571 --- /dev/null +++ b/circle.yml @@ -0,0 +1,19 @@ +## Global the test machine; use the system-wide Python becaues tox will create +## its own virtualenvs. +machine: + post: + - pyenv global + +## Install Calico build/test deps. +dependencies: + pre: + - sudo apt-get install -y libffi-dev libyajl2 python-dev + - sudo pip install tox coverage + +## Run our test script, which ultimately runs tox. We need to call +## "deactivate" to get out of the virtualenv that CircleCI creates by default. +test: + override: + - deactivate && ./run-unit-test.sh + post: + - cp -r .coverage coverage.xml htmlcov $CIRCLE_ARTIFACTS