-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tox for testing py versions (#16)
* Use tox for testing py versions * Update circleci config * Use tox image for circleci * Use separate images for py versions * Add MANIFEST * Remove circleci virtualenv * Revert changes * Skip py2 venv if using cache * Remove cache * Add update to CHANGES
- Loading branch information
Showing
6 changed files
with
40 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
test-27: &test-template | ||
docker: | ||
- image: circleci/python:3.6.4 | ||
|
||
working_directory: ~/repo | ||
|
||
- image: circleci/python:2.7 | ||
working_directory: ~/comparator | ||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "setup.py" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: | ||
name: install dependencies | ||
command: | | ||
make venv | ||
. venv/bin/activate | ||
make install | ||
pip3 install coveralls | ||
- save_cache: | ||
paths: | ||
- ./venv | ||
key: v1-dependencies-{{ checksum "setup.py" }} | ||
|
||
pip install coveralls | ||
- run: | ||
name: run tests | ||
command: | | ||
. venv/bin/activate | ||
make test | ||
coveralls | ||
test-36: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.6 | ||
test-37: | ||
<<: *test-template | ||
docker: | ||
- image: circleci/python:3.7 | ||
|
||
workflows: | ||
version: 2 | ||
comparator: | ||
jobs: | ||
- test-27 | ||
- test-36 | ||
- test-37 |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from comparator.models import Comparator # noqa | ||
|
||
__all__ = [] | ||
__version__ = '0.2.0' | ||
__version__ = '0.2.1' |
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,6 @@ | ||
[tox] | ||
envlist = py{27,36,37} | ||
|
||
[testenv] | ||
whitelist_externals = make | ||
commands = make test |