-
Notifications
You must be signed in to change notification settings - Fork 270
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 #238 from rpkilby/rewrite
Merge in jsonfield2
- Loading branch information
Showing
31 changed files
with
931 additions
and
716 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 |
---|---|---|
@@ -0,0 +1,102 @@ | ||
version: 2.1 | ||
|
||
aliases: | ||
- &environ | ||
run: | ||
name: setup virtual environment | ||
# The below ensures the venv is activated for every subsequent step | ||
command: | | ||
virtualenv venv | ||
echo "source /home/circleci/project/venv/bin/activate" >> $BASH_ENV | ||
- &install | ||
run: | ||
name: install dependencies | ||
command: | | ||
pip install -U pip setuptools wheel tox tox-factor codecov | ||
- &test-steps | ||
steps: | ||
- checkout | ||
- *environ | ||
- *install | ||
- run: tox | ||
- run: coverage combine | ||
- run: coverage report | ||
- run: codecov | ||
|
||
jobs: | ||
lint: | ||
steps: | ||
- checkout | ||
- *environ | ||
- *install | ||
- run: tox -e isort,lint | ||
docker: | ||
- image: circleci/python:3.8 | ||
|
||
dist: | ||
steps: | ||
- checkout | ||
- *environ | ||
- *install | ||
- run: | | ||
python setup.py bdist_wheel | ||
tox -e dist --installpkg ./dist/jsonfield-*.whl | ||
tox -e dist | ||
docker: | ||
- image: circleci/python:3.8 | ||
|
||
test-py38: | ||
<<: *test-steps | ||
docker: | ||
- image: circleci/python:3.8 | ||
environment: | ||
TOXFACTOR: py38 | ||
|
||
test-py37: | ||
<<: *test-steps | ||
docker: | ||
- image: circleci/python:3.7 | ||
environment: | ||
TOXFACTOR: py37 | ||
|
||
test-py36: | ||
<<: *test-steps | ||
docker: | ||
- image: circleci/python:3.6 | ||
environment: | ||
TOXFACTOR: py36 | ||
|
||
|
||
workflows: | ||
version: 2 | ||
commit: &test-workflow | ||
jobs: | ||
- lint | ||
- dist: | ||
requires: | ||
- lint | ||
|
||
- test-py38: | ||
requires: | ||
- lint | ||
|
||
- test-py37: | ||
requires: | ||
- lint | ||
|
||
- test-py36: | ||
requires: | ||
- lint | ||
|
||
weekly: | ||
<<: *test-workflow | ||
triggers: | ||
- schedule: | ||
# 8/9 AM PST/PDT every Monday | ||
cron: "0 16 * * 1" | ||
filters: | ||
branches: | ||
only: | ||
- master |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 +1,11 @@ | ||
.coverage | ||
.coverage* | ||
.tox | ||
htmlcov | ||
*.pyc | ||
*.egg-info/ | ||
build/ | ||
dist/ | ||
MANIFEST | ||
.project | ||
.pydevproject | ||
.DS_Store | ||
.idea/* | ||
.env | ||
.env/ | ||
.venv/ |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,3 +1,4 @@ | ||
include CHANGES.rst | ||
include LICENSE | ||
include README.rst | ||
include README.rst CHANGES.rst LICENSE | ||
|
||
include tox.ini | ||
recursive-include tests *.py |
Oops, something went wrong.