-
Notifications
You must be signed in to change notification settings - Fork 58
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 #333 from open-craft/mtyaka/FAL-2198-django3.2
[FAL-2198] Django 3.2 support
- Loading branch information
Showing
81 changed files
with
956 additions
and
794 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
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 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 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,9 +1,11 @@ | ||
version: 2.1 | ||
orbs: | ||
browser-tools: circleci/[email protected] | ||
jobs: | ||
build: | ||
docker: | ||
- image: <<parameters.docker_image>> | ||
- image: circleci/mysql:5.6 | ||
- image: circleci/mysql:5.7 | ||
command: mysqld --character-set-server=latin1 --collation-server=latin1_swedish_ci | ||
environment: | ||
MYSQL_ROOT_PASSWORD: rootpw | ||
|
@@ -12,29 +14,17 @@ jobs: | |
type: string | ||
docker_image: | ||
type: string | ||
parallel: | ||
default: 1 | ||
type: integer | ||
parallelism: <<parameters.parallel>> | ||
environment: | ||
MOZ_HEADLESS: 1 | ||
WORKBENCH_DATABASES: '{"default": {"ENGINE": "django.db.backends.mysql", "NAME": "db", "USER": "root", "PASSWORD": "rootpw", "HOST": "127.0.0.1", "OPTIONS": {"charset": "utf8mb4"}}}' | ||
steps: | ||
- checkout | ||
- run: | ||
name: Update system | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk3.0-cil-dev libasound2 libasound2 libdbus-glib-1-2 libdbus-1-3 libgtk2.0-0 default-libmysqlclient-dev | ||
- run: | ||
name: Install geckodriver | ||
command: | | ||
wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz | ||
tar xzf geckodriver-v0.26.0-linux64.tar.gz | ||
sudo mv geckodriver /usr/local/bin/geckodriver | ||
which geckodriver | ||
- run: | ||
name: Install new firefox | ||
command: | | ||
wget https://archive.mozilla.org/pub/firefox/releases/70.0.1/linux-x86_64/en-US/firefox-70.0.1.tar.bz2 | ||
tar jxf firefox-70.0.1.tar.bz2 | ||
export PATH="$(pwd)/firefox/:$PATH" | ||
- browser-tools/install-firefox | ||
- browser-tools/install-geckodriver | ||
- run: | ||
name: Sync submodules | ||
command: git submodule sync | ||
|
@@ -44,43 +34,14 @@ jobs: | |
- run: | ||
name: Run tests | ||
command: | | ||
export PATH="$(pwd)/firefox/:$PATH" | ||
mkdir -p /tmp/coverage/$CIRCLE_SHA1 | ||
virtualenv venv | ||
source venv/bin/activate | ||
mkdir var | ||
pip -q install -r requirements.txt | ||
pip -q install -r requirements-dev.txt | ||
pip -q install -r test_requirements.txt | ||
pip install -e . | ||
<<parameters.test_command>> | ||
if [ -e .coverage.* ]; then | ||
cp .coverage.* /tmp/coverage/$CIRCLE_SHA1/. | ||
fi | ||
- persist_to_workspace: | ||
root: /tmp | ||
paths: | ||
- coverage | ||
|
||
coverage: | ||
docker: | ||
- image: <<parameters.docker_image>> | ||
parameters: | ||
docker_image: | ||
type: string | ||
steps: | ||
- checkout | ||
- run: | ||
name: Update system and install deps | ||
command: | | ||
sudo apt-get update | ||
virtualenv venv | ||
source venv/bin/activate | ||
pip install 'coverage==5.0.3' | ||
- attach_workspace: | ||
at: /tmp/workspace | ||
- run: | ||
command: | | ||
source venv/bin/activate | ||
coverage combine /tmp/workspace/coverage/$CIRCLE_SHA1/ | ||
coverage report | ||
deploy: | ||
docker: | ||
|
@@ -131,42 +92,38 @@ workflows: | |
build_and_deploy: | ||
jobs: | ||
- build: | ||
name: py35-quality | ||
name: py38-quality | ||
test_command: make quality | ||
docker_image: circleci/python:3.5-buster-browsers | ||
docker_image: cimg/python:3.8-browsers | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- build: | ||
name: py35-unit | ||
name: py38-unit | ||
test_command: make test.unit | ||
docker_image: circleci/python:3.5-buster-browsers | ||
docker_image: cimg/python:3.8-browsers | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- build: | ||
name: py35-integration | ||
test_command: make test.integration | ||
docker_image: circleci/python:3.5-buster-browsers | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- coverage: | ||
name: py35-coverage | ||
docker_image: circleci/python:3.5-buster | ||
name: py38-integration | ||
parallel: 4 | ||
test_command: | | ||
set -e | ||
TEST_FILES=$(circleci tests glob "problem_builder/tests/integration/test_*.py" | circleci tests split --split-by=timings) | ||
pytest --verbose $TEST_FILES | ||
docker_image: cimg/python:3.8-browsers | ||
filters: | ||
tags: | ||
only: /.*/ | ||
requires: | ||
- py35-quality | ||
- py35-unit | ||
- py35-integration | ||
- deploy: | ||
name: py35-deploy-bdist_wheel | ||
docker_image: circleci/python:3.5-buster | ||
name: py38-deploy-bdist_wheel | ||
docker_image: cimg/python:3.8 | ||
dist_type: bdist_wheel | ||
requires: | ||
- py35-coverage | ||
- py38-quality | ||
- py38-unit | ||
- py38-integration | ||
filters: | ||
tags: | ||
only: /v[0-9]+(\.[0-9]+)*/ | ||
|
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.