Skip to content

Commit

Permalink
maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Kahn committed Dec 1, 2019
1 parent a9191c7 commit dd1b3cd
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 8 deletions.
93 changes: 87 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,107 @@
jobs:
build:
django-2-0:
executor:
name: python/default
tag: 3.8.0
steps:
- checkout
- python/load-cache:
key: python-cache
key: python-cache-2-0
- python/install-deps
- python/save-cache:
key: python-cache
key: python-cache-2-0
- run:
command: pip install --user django
name: django
command: pip install --user Django>=2.0.0,<2.1.0
name: Install Django
- run:
command: |
python -m pytest
name: Test

django-2-1:
executor:
name: python/default
tag: 3.8.0
steps:
- checkout
- python/load-cache:
key: python-cache-2-1
- python/install-deps
- python/save-cache:
key: python-cache-2-1
- run:
command: pip install --user Django>=2.1.0,<2.2.0
name: Install Django
- run:
command: |
python -m pytest
name: Test

django-2-2:
executor:
name: python/default
tag: 3.8.0
steps:
- checkout
- python/load-cache:
key: python-cache-2-2
- python/install-deps
- python/save-cache:
key: python-cache-2-2
- run:
command: pip install --user Django>=2.2.0,<2.3.0
name: Install Django
- run:
command: |
python -m pytest
name: Test

django-1-11:
executor:
name: python/default
tag: 2.7.14
steps:
- checkout
- python/load-cache:
key: python-cache-1-11
- python/install-deps
- python/save-cache:
key: python-cache-1-11
- run:
command: pip install --user Django>=1.11,<1.12
name: Install Django
- run:
command: |
python -m pytest
name: Test

django-latest:
executor:
name: python/default
tag: 2.7.14
steps:
- checkout
- python/load-cache:
key: python-cache-latest
- python/install-deps
- python/save-cache:
key: python-cache-latest
- run:
command: pip install --user -U Django
name: Install Django
- run:
command: |
python -m pytest
name: Test

orbs:
python: circleci/python@0.1
version: 2.1
workflows:
main:
jobs:
- build
- django-2-0
- django-2-1
- django-2-2
- django-1-11
- django-latest
2 changes: 0 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def pytest_configure():
},
]
})
print(DATABASES)
settings.configure(
DEBUG=True,
USE_TZ=True,
Expand All @@ -76,4 +75,3 @@ def pytest_configure():
SHARD_EPOCH=int(time.mktime(datetime(2016, 1, 1).timetuple()) * 1000),
)
django.setup()
print(settings.DATABASES)

0 comments on commit dd1b3cd

Please sign in to comment.