Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1073 from projectcalico/smc-circle
Add CircleCI config.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |