machine: | |
python: | |
version: 2.7.9 | |
checkout: | |
post: | |
- > | |
if [ -n "$CI_PULL_REQUEST" ]; then | |
PR_ID=${CI_PULL_REQUEST##*/} | |
git fetch origin +refs/pull/$PR_ID/merge: | |
git checkout -qf FETCH_HEAD | |
fi | |
dependencies: | |
override: | |
- pip install tox | |
test: | |
override: | |
- tox -e flake8 | |
- tox -e py27 | |
- tox -e validate | |
post: | |
- mkdir -p $CIRCLE_TEST_REPORTS/reports | |
- cp nosetests.xml $CIRCLE_TEST_REPORTS |