20 Commits

Author SHA1 Message Date
James Valleroy
e3e123bcbd
HACKING: Fix provision with tests command
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-13 08:12:14 -05:00
Sunil Mohan Adapa
190a82e9e8
HACKING: Update with instructions for multiple OSes
- Add instructions on how to install Git, Vagrant and VirtualBox for other OSes.
  Instructions for other OSes are untested by me.

- Add instruction to checkout the source code.

- Remove instructions for installing on the host machine, these have not been
  tested for a while and could lead to confusion. 'setup.py develop' option is
  not being used anymore.

- Installing firefox using apt provides a sufficient version of functional
  tests. Simplify the instructions.

- Update functional tests instructions to use the '-m' mark option instead of of
  '-k' keyword.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-11-13 07:59:49 -05:00
Sunil Mohan Adapa
467adf4574
HACKING: Add guidelines for creating new icons
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-05-16 06:41:39 -04:00
James Valleroy
44b25ea617
functional_tests: Install python3-pytest-django
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-04-03 22:03:52 -04:00
LoveIsGrief
d31b0ee3c7
functional_tests: Allow provisioning VM for functional tests
It's now possible to run the tests in the VM more easily
without copy-pasting too much from HACKING.md.
`vagrant provision --provisiion-with tests` will take care of the dependencies.

freedombox/plinth#1521 - Provision VM to run function functional tests

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-04-03 22:03:44 -04:00
Joseph Nuthalapati
fa4c807e82
vagrant: Run plinth as user plinth in development environment
Running plinth as root is causing preventable permission errors in production.
This commit makes the necessary changes to run plinth as the user plinth so that
permission errors can be caught early and prevented.

- Give ownership of all files in the mounted directory to plinth
- Add permissions in sudoers file so that plinth can run scripts in
  /vagrant/actions as superuser
- Move scripts that run on vagrant triggers to a separate directory

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-04-01 20:10:30 -04:00
Sunil Mohan Adapa
fd9b6770be
tests: Use pytest for running all tests
- Create option --include-functional to run functional tests. Otherwise, they
  are disabled by default. If pytest-bdd is not installed, functional tests are
  not discovered at all.

- Make pytest-django discover the setting files by creating dummy manage.py in
  top level directory.

- Make pytest run as './setup.py pytest'. Add alias from './setup.py test'. This
  requires pytest-runner package.

- Merge .gitignore files from functional_tests/

- Update gitlab-ci.yml to run tests with coverage using pytest.

- Update HACKING.md to suggest using py.test-3 instead of old way of running.
  Merge functional tests README.md into HACKING.md.

- Remove execution wrapper runtests.py as pytest-django is able to configure
  Django settings before execution of tests. Update tests to explicitly ask for
  Django database as database access is denied by default.

- Replace usage of python3-coverage with python3-pytest-coverage. Execution
  wrappers are not required.

- Add build dependencies on pytest modules.

- Let all warnings be shown after running tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-10 09:54:23 -04:00
Sunil Mohan Adapa
e395c531c7
HACKING.md: Update instructions on installing dependencies
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-10 09:54:16 -04:00
Joseph Nuthalapati
8007289e57
vagrant: Vagrantfile changes for ease of development
Moved some frequently required operations to the Vagrantfile.

Newcomers to the project almost always face the issue of port 8000 not being
available. Disabling system Plinth and running only the development version
solves this issue.

Automatic upgrades are a frequent blocker for development and an unnecessary
annoyance on a development setup.

- Update documentation about vagrant file changes

- Remove plinth restart step

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-08-18 09:12:38 -04:00
Michael Pimmer
00ac068133
Merge ./run --debug into --develop option
Signed-off-by: Michael Pimmer <info@fonfon.at>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-18 19:27:38 -04:00
Michael Pimmer
b0e09736d0
Adapt .md files to four spaces for correct lists
For longer lists with various paragraphs per item, (gitlab?) markdown
needs four spaces of indentation to work correctly:
https://docs.gitlab.com/ee/user/markdown.html#lists

Signed-off-by: Michael Pimmer <info@fonfon.at>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-18 19:27:35 -04:00
Michael Pimmer
5f033a8ba0
Add documentation for the './run --develop' option
Signed-off-by: Michael Pimmer <info@fonfon.at>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-06-18 19:27:27 -04:00
Sunil Mohan Adapa
2723822b71
Rename Plinth to FreedomBox in documentation
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:39 -05:00
Sunil Mohan Adapa
db2b796165
Update Github URLs with Salsa URLs
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-01-30 11:06:13 +05:30
Joseph Nuthalapati
344b1b8366
HACKING: Commands to run a single test method, class or module
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-01-30 10:58:06 +05:30
Johannes Keyser
f0f2d21562
doc: update HACKING, CONTRIBUTING and INSTALL information
- use markdown more explicitly
 - update information on i18n and translation
 - move or delete redundant info from HACKING into CONTRIBUTING

Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-01-15 12:57:28 +05:30
Joseph Nuthalapati
d30ba771c3
Complete some of the pending changing in renaming some files to .md
In commit d4b4791, four files were renamed by adding a file extension .md
The files are CONTRIBUTING, COPYING, HACKING and INSTALL
This commit fixes the pending tasks and especially the bug where HACKING.md is
wrongly listed as HACKING in debian/plinth.docs and cause build failure for the
Debian package of Plinth

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-01-05 13:06:31 +05:30
Sunil Mohan Adapa
b542d43175
Update HACKING file about coding standard tools
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-13 18:56:01 -05:00
Sunil Mohan Adapa
0af8175fd0
Install dependency packages during install/provisioning
This will not install all the dependencies of Plinth but will install the
dependencies required for essential modules to setup properly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-11-03 12:41:11 +05:30
Palash Nigam
d4b479174c
Docs converted to markdown
The docs named HACKING, COPYING,
CONTRIBUTING and INSTALL were
converted to markdown format

Closes: #1106

Signed-off-by: Palash Nigam <npalash25@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2017-11-03 12:20:17 +05:30