-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ensure Django 3.2 compatibility
* refactor: ensure Django 3.2 compatibility * replace travis by CircleCI * bump Django min/max versions * refactor setup.py * bump xblock-sdk dependency * add tox for test running * bump package version * chore: update translations * chore: extend gitignore * feat: upgrade poll XBlock to use celery 5.0+ features
- Loading branch information
1 parent
5e849b5
commit 72705b6
Showing
32 changed files
with
1,419 additions
and
624 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,78 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
browser-tools: circleci/browser-tools@1.2.3 | ||
|
||
commands: | ||
install-dependencies: | ||
steps: | ||
- run: | ||
name: Install OS dependencies | ||
command: | | ||
sudo apt update && sudo apt install -y nodejs npm gettext | ||
# Upgrade nodejs after node-gyp installed properly | ||
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - | ||
sudo apt install -y nodejs | ||
- run: | ||
name: Install project dependencies | ||
command: | | ||
pip install tox | ||
make requirements | ||
jobs: | ||
quality: | ||
docker: | ||
# Always run with the minimum supported version | ||
# to avoid new language feature checkes like f-strings | ||
- image: cimg/python:2.7 | ||
steps: | ||
- checkout | ||
- install-dependencies | ||
- run: | ||
name: Check code quality | ||
command: | | ||
tox -e quality | ||
test: | ||
parameters: | ||
image: | ||
type: string | ||
tox-env: | ||
type: string | ||
docker: | ||
- image: << parameters.image >> | ||
steps: | ||
- checkout | ||
- browser-tools/install-firefox | ||
- browser-tools/install-geckodriver | ||
- install-dependencies | ||
- run: | ||
name: Test << parameters.tox-env >> | ||
command: | | ||
tox -e << parameters.tox-env >> | ||
workflows: | ||
version: 2 | ||
main: | ||
jobs: | ||
- quality | ||
- test: | ||
requires: | ||
- quality | ||
matrix: | ||
parameters: | ||
image: ["cimg/python:2.7-browsers"] | ||
tox-env: ["py27-django111"] | ||
- test: | ||
requires: | ||
- quality | ||
matrix: | ||
parameters: | ||
image: ["cimg/python:3.6-browsers"] | ||
tox-env: ["py36-django22", "py36-django32"] | ||
- test: | ||
requires: | ||
- quality | ||
matrix: | ||
parameters: | ||
image: ["cimg/python:3.8-browsers"] | ||
tox-env: ["py38-django22", "py38-django32"] |
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 |
---|---|---|
|
@@ -130,3 +130,9 @@ Session.vim | |
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Gecko logs | ||
geckodriver.log | ||
|
||
# Misc | ||
.DS_Store |
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
Oops, something went wrong.