Skip to content

Commit

Permalink
Add python 3.7 and do some clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-s committed Feb 26, 2020
1 parent 2820a87 commit 228fe70
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 9 deletions.
64 changes: 57 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ py36default: &py36default
- run: docker load -i /tmp/images/py36.tar || true
- run: docker run py36 tox -e $CIRCLE_STAGE

py37default: &py37default
docker:
- image: circleci/python:3.7
steps:
- setup_remote_docker:
docker_layer_caching: false
- checkout
- attach_workspace:
at: /tmp/images
- run: docker load -i /tmp/images/py37.tar || true
- run: docker run py37 tox -e $CIRCLE_STAGE

py35_requires: &py35_requires
requires:
- py35_base
Expand All @@ -32,6 +44,10 @@ py36_requires: &py36_requires
requires:
- py36_base

py37_requires: &py37_requires
requires:
- py37_base

jobs:
py35_base:
docker:
Expand Down Expand Up @@ -59,31 +75,54 @@ jobs:
- persist_to_workspace:
root: images
paths: py36.tar
py37_base:
docker:
- image: circleci/python:3.7
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: false
- run: docker build -f .circleci/Dockerfile --build-arg PYTHON_VERSION=3.7 -t py37 .
- run: mkdir images
- run: docker save -o images/py37.tar py37
- persist_to_workspace:
root: images
paths: py37.tar

flake8:
<<: *py35default
isort:
<<: *py35default
py36-dj111-sqlite-cms40-default:
<<: *py36default


py35-dj20-sqlite-cms40-default:
<<: *py35default
py35-dj22-sqlite-cms40-default:
py35-dj20-sqlite-cms40-versioning:
<<: *py35default
py36-dj20-sqlite-cms40-default:
<<: *py36default

py36-dj21-sqlite-cms40-default:
<<: *py36default
py36-dj22-sqlite-cms40-default:
py36-dj21-sqlite-cms40-versioning:
<<: *py36default
py35-dj20-sqlite-cms40-versioning:

py35-dj22-sqlite-cms40-default:
<<: *py35default
py35-dj22-sqlite-cms40-versioning:
<<: *py35default
py36-dj21-sqlite-cms40-versioning:
py36-dj22-sqlite-cms40-default:
<<: *py36default
py36-dj22-sqlite-cms40-versioning:
<<: *py36default
py37-dj22-sqlite-cms40-default:
<<: *py37default
py37-dj22-sqlite-cms40-versioning:
<<: *py37default



#######################

Expand All @@ -93,6 +132,7 @@ workflows:
jobs:
- py35_base
- py36_base
- py37_base
- flake8:
requires:
- py35_base
Expand All @@ -108,21 +148,31 @@ workflows:
- py35-dj20-sqlite-cms40-versioning:
requires:
- py35_base
- py35-dj22-sqlite-cms40-versioning:
requires:
- py35_base
- py36-dj20-sqlite-cms40-default:
requires:
- py36_base


- py36-dj21-sqlite-cms40-default:
requires:
- py36_base
- py36-dj21-sqlite-cms40-versioning:
requires:
- py36_base


- py35-dj22-sqlite-cms40-versioning:
requires:
- py35_base
- py36-dj22-sqlite-cms40-default:
requires:
- py36_base
- py36-dj22-sqlite-cms40-versioning:
requires:
- py36_base
- py37-dj22-sqlite-cms40-default:
requires:
- py37_base
- py37-dj22-sqlite-cms40-versioning:
requires:
- py37_base
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
flake8
isort
py{35,36}-dj{111,20,21,22}-sqlite-cms40-{default,versioning}
py{35,36,37}-dj{111,20,21,22}-sqlite-cms40-{default,versioning}

skip_missing_interpreters=True

Expand All @@ -14,13 +14,15 @@ deps =

dj111: Django>=1.11,<2.0
dj20: Django>=2.0,<2.1
dj22: Django>2.1,<3.0
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<3.0

cms40: https://github.com/divio/django-cms/archive/release/4.0.x.zip

basepython =
py35: python3.5
py36: python3.6
py37: python3.7

commands =
{envpython} --version
Expand Down

0 comments on commit 228fe70

Please sign in to comment.