Commit Graph

27 Commits

Author SHA1 Message Date
Imran Rahman
f567b5f685
update docs docker-compose -> docker compose (#4463)
Co-authored-by: Imran Rahman <imranrahman.ix@gmail.com>
2023-07-24 10:42:51 +01:00
Bruno Alla
550f270b70
Relax rules for linting of pull requests on this template (#4273)
* Don't check for black or pre-commit by default

Fix #4261

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Ignore CONTRIBUTORS.md when running template's pre-commit

* Fix condition for skipping tests

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-15 13:21:18 +01:00
Bruno Alla
cbb0e19de7
Add Webpack support (#3623)
* Add support for Webpack as frontend pipeline

* Rename CI jobs

* Fix a couple of issues with Webpack + Docker

* Don't include Boostrap CSS from CDN with Webpack

* Rename variable

* Set publicPath in prod webpack config

* Fix removal of SASS files in post-gen hooks

* Add Webpack to readme usage section

* Run Django + Webpack dev server concurrently without Docker

* Fix async runserver command with Gulp/Webpack

* Upgrade django-webpack-loader to 1.5.0

* Pass variables required by Webpack at build time

* Upgrade django-webpack-loader to 1.7.0

* Add missing condition

* Add support for Azure Storage + Webpack

* Whitespaces

* Rename ROOT_DIR -> BASE_DIR

* Rename jobs

* Bump django-webpack-loader to latest

* Document limitation of Docker + Webpack + no Whitenoise

* Update section on custom Bootstrap compilation in generated readme
2023-01-29 12:12:12 +00:00
Bruno Alla
9e44a205c3 Double quote array expansions to avoid re-splitting elements.
If one argument includes spaces, the expansion will be wrong. Add double quotes to avoid that.

https://github.com/koalaman/shellcheck/wiki/SC2068
2022-01-04 17:48:21 +00:00
Bruno Alla
2adcf9f5d4
Build the HTML for the documentation as part of the CI (#3498) 2021-12-28 15:35:56 +00:00
Bruno Alla
d0d6ebd892
Simplify TEMPLATES settings with APP_DIRS=True (#3488) 2021-12-24 19:35:09 +00:00
Bruno Alla
2186caf11d
Speed up CI tests on macOS (#3480) 2021-12-22 08:14:00 +00:00
Bruno Alla
954718cd83 Build local docker images on CI 2021-11-11 20:11:42 +00:00
Bruno Alla
e08b17a234 Run pre-commit for linting in Docker 2021-04-07 20:57:04 +01:00
areski
002b3eaf41 Update Django 3.0.11 to 3.1.6 2021-02-04 16:52:45 +01:00
Bruno Alla
f7bba44015 Print commands in bash script 2020-10-04 15:57:37 +01:00
Bruno Alla
1d420157c1 Revert accidental commit 2019-04-02 15:10:14 +01:00
Bruno Alla
6d48275e5f Fix Heroku docs 2019-04-02 10:33:38 +01:00
Bruno Alla
68f7268770
Run Black on Travis (#1957)
* Create a test matrix on Travis CI to help testing multiple options

* Change test_docker.sh to fail if any command in it fails

* Run black on the CI with --check option

* Fix formatting of project files using black

* Install black in the docker container

* Exclude migrations in black checks

* Fix Black formatting violations

* Run black on the whole generated project & fix issues
2019-03-18 17:49:43 +00:00
Bruno Alla
b5d782e252
Merge branch 'master' into mypy 2018-08-29 08:21:22 +01:00
Denis Orehovsky
80e0862ff0 Fix running tests in test_docker.sh file 2018-08-19 14:22:33 +03:00
Denis Orehovsky
c18a2fca8c Run type checks in test_docker 2018-08-19 14:08:29 +03:00
John Cass
bb01d961ed Use pytest's recommended command as the entry point for running tests. 2018-07-23 08:51:06 +02:00
Nikita P. Shupeyko
de56ad9099 Remove redundant js_task_runner declaration from test_docker.sh 2018-05-21 21:37:42 +03:00
Nikita P. Shupeyko
20a43c2bc5 Simplify test_docker.sh 2018-03-05 14:26:12 +03:00
Nikita P. Shupeyko
fe6fe1cc76 Fix test_docker.sh 2018-03-04 15:18:27 +03:00
Bruno Alla
0164c330b3 Move to the python:alpine docker image (#1482)
* Move to the python:alpine docker image

- Switch the base images for local and production to alpine
- Install extra dependencies for psycopg2, Pillow and cffi
- Change shebang for shell scripts to use sh instead of bash

* Move to the python:alpine docker image

- Migrate group and user creation to Alpine syntax

* Move to the python:alpine docker image

- Remove `function` keyword, unsupported in shell

* Upgrade various places to the latest Python 3.6

* Test support for translations

* Add gettext library, required for translations support

* Add locale folder for translations support with README documenting it

* Update Changelog

* Tweak command to test translations support
2018-02-22 10:01:05 -05:00
Shupeyko Nikita
e889316b11 Rename dev.yml to local.yml (#1227)
* Rename dev.yml to local.yml

Closes #1226.

* Rename docker-compose.yml to production.yml
2017-07-14 17:09:41 +03:00
Fabio C. Barrioneuvo da Luz
d0cd31e019 fix docker build on travis-ci 2017-02-15 17:27:12 -03:00
Fábio C. Barrionuevo da Luz
ab4686f519 check pending migration (#840) 2016-10-08 17:43:12 -07:00
Steve Steiner
d556f3cc5f Make test_docker.sh tests pass by passing new password auth rules 2016-09-29 01:01:01 -03:00
Jay
82a30ea88c adds simple docker test 2016-01-18 12:26:25 +01:00