Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
version: 2
jobs:
# Setup Python 2.7
setup27:
working_directory: ~/django-formidable
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
command: |
pip install --user -e ./
# Setup Python 3.6
setup36:
working_directory: ~/django-formidable
docker:
- image: circleci/python:3.6
steps:
- checkout
- run:
command: |
pip install --user -e ./
# Setup Python 3.5
setup35:
working_directory: ~/django-formidable
docker:
- image: circleci/python:3.5
steps:
- checkout
- run:
command: |
pip install --user -e ./

# Linters
lint:
working_directory: ~/django-formidable
docker:
- image: circleci/python:3.6
steps:
- checkout
- run:
name: Run linters (flake8 + isort)
command: |
pip install --user tox
~/.local/bin/tox -e flake8,isort-check
# Docs job
docs:
working_directory: ~/django-formidable
docker:
- image: circleci/node:4.8.2
steps:
- checkout
- run:
name: Check Python version & install Python dependencies
command: |
python --version
sudo apt update && sudo apt install python-pip python-dev
- run:
name: Run Django doc tests using tox
command: |
pip install --user tox
~/.local/bin/tox -e docs

djangopy27:
working_directory: ~/django-formidable
docker:
- image: circleci/python:2.7
steps:
- checkout
- run:
name: Run Django tests using Python 2.7
command: |
pip install --user tox
~/.local/bin/tox -e $(~/.local/bin/tox -l | grep py27 | tr '\n' ',')

djangopy36:
working_directory: ~/django-formidable
docker:
- image: circleci/python:3.6
steps:
- checkout
- run:
name: Run Django tests using Python 3.6
command: |
pip install --user tox
~/.local/bin/tox -e $(~/.local/bin/tox -l | grep py36 | tr '\n' ',')

djangopy35:
working_directory: ~/django-formidable
docker:
- image: circleci/python:3.5
steps:
- checkout
- run:
name: Run Django tests using Python 3.5
command: |
pip install --user tox
~/.local/bin/tox -e $(~/.local/bin/tox -l | grep py35 | tr '\n' ',')

workflows:
version: 2
tests:
jobs:
# Run setup jobs
- setup27
- setup35
- setup36
# Run linters
- lint
# Run docs job (using 2.7, but whatever)
- docs
# Running tests related to Python 2.7
- djangopy27:
requires:
- setup27
# Running tests related to Python 3.6
- djangopy36:
requires:
- setup36
# Running tests related to Python 3.5 (soon to be deprecated)
- djangopy35:
requires:
- setup35
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ChangeLog
master (unreleased)
===================

Nothing here yet.
- Upgrade to Circle-CI 2 (before the end of life of Circle-CI v1 on August, 31st 2018).

Release 2.1.1 (2018-06-22)
==========================
Expand Down
15 changes: 0 additions & 15 deletions circle.yml

This file was deleted.