Skip to content

Add gitlab CI testing

Aaron Whitehouse requested to merge aaron-w/duplicity:add_gitlab_testing into master

Add automated CI testing in .gitlab-ci.yml starting with a fairly simple setup based on our Ubuntu 18.04 Docker testing (but without our multiple-container tests).

  • Update .gitlab-ci.yml to update pip before installing other pip packages (to try to fix more-itertools issue: https://github.com/pytest-dev/pytest/issues/4770 )
  • Update tox.ini to add junit reports (for more specific Gitlab test reporting) and add these as CI artefacts.
  • Removed the --max-fail=1 as for CI the detail is worth the additional runner time; people who want this behaviour should be able to add --max-fail as a posarg.
  • Set each tox environment (py27, py36, py37 and py38) as separate tests calling tox -e {env} so that these run in parallel runners.
  • I have not done code tests nor code coverage. It looks like code coverage should be able to be integrated into the Gitlab GUI if done correctly.
  • The failing tests in py27 appear to be in master.
Edited by Aaron Whitehouse

Merge request reports