14 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
273c419a26
gitlab-ci: Fix path for HTML coverage report generation
This issue is caused by use of tmpdir fixture which forces the tests to run in a
temporary directory and HTML report to also get generated there.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-26 23:01:38 -07:00
Veiko Aasa
ed646d84a5
actions: Check with flake8
Also fix flake8 warnings.

Closes: #1613

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org split multi strings differently to avoid spaces]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-10 19:08:45 -07:00
Nikolas Nyby
5439084c84
Add flake8 to gitlib-ci - closes #58
And fix the rest of the flake8 errors.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-25 11:07:06 -07:00
Sunil Mohan Adapa
8f2876b1e7
ci: Allow gitlab to parse test coverage results
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-11 19:23:49 -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
Joseph Nuthalapati
80b4b654de
ci: Export freedombox.deb as build artifact instead of plinth.deb
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-23 10:40:37 +05:30
Joseph Nuthalapati
a41002ddec
ci: Don't install fuse and fuse3 packages in the CI environment
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-01-06 03:56:46 +05:30
James Valleroy
f9604c40a1
ci: Install jquery packages for coverage
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-11-24 17:55:31 +05:30
James Valleroy
2cd77f8aa8
Revert "ci: Use python3.6 when installing dependencies"
This reverts commit 8dc4d793df72ba6a2ad055d22b8fcf69eb5b3859.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-11-24 17:55:06 +05:30
James Valleroy
71d8f1f923
ci: Prevent installing fuse
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-09-26 15:53:15 +05:30
James Valleroy
3d79ad7633
ci: Run test coverage and get report
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-08-08 15:46:42 +05:30
Joseph Nuthalapati
7e2c9b1095
ci: Install python3-coverage before running tests
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-16 13:09:06 +05:30
James Valleroy
8dc4d793df
ci: Use python3.6 when installing dependencies
fail2ban install is failing due to incompatibility with python3.7. As
a temporary workaround, remove all python3.7 packages before
installing dependencies.

However, python3-all is a build-dependency, so re-install it before
building the package.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-07-16 10:21:53 +05:30
Joseph Nuthalapati
8a7eb0f274
ci: Replace CircleCI configuration with GitLab CI configuration
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-01-29 15:36:03 +05:30