Skip to content

Commit

Permalink
Merge pull request #1073 from projectcalico/smc-circle
Browse files Browse the repository at this point in the history
Add CircleCI config.
  • Loading branch information
fasaxc committed Aug 2, 2016
2 parents 9b3dbe2 + 4eefd6b commit a318f4d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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)
Expand Down
19 changes: 19 additions & 0 deletions 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

0 comments on commit a318f4d

Please sign in to comment.