ci: disable 'full-test' which is a huge pain, always run every 'test' jobs instead

This commit is contained in:
Alexandre Aubin 2023-11-28 23:20:08 +01:00
parent 16391d7374
commit 0eccb7e46b

View file

@ -29,35 +29,35 @@
# TESTS # TESTS
######################################## ########################################
full-tests: #full-tests:
stage: test # stage: test
image: "before-install" # image: "before-install"
variables: # variables:
PYTEST_ADDOPTS: "--color=yes" # PYTEST_ADDOPTS: "--color=yes"
before_script: # before_script:
- *install_debs # - *install_debs
- yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace # - yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace
script: # script:
- python3 -m pytest --profile --cov=yunohost tests/ src/tests/ --junitxml=report.xml # - python3 -m pytest --profile --cov=yunohost tests/ src/tests/ --junitxml=report.xml
needs: # needs:
- job: build-yunohost # - job: build-yunohost
artifacts: true # artifacts: true
- job: build-ssowat # - job: build-ssowat
artifacts: true # artifacts: true
- job: build-moulinette # - job: build-moulinette
artifacts: true # artifacts: true
coverage: '/TOTAL.*\s+(\d+%)/' # coverage: '/TOTAL.*\s+(\d+%)/'
artifacts: # artifacts:
reports: # reports:
junit: report.xml # junit: report.xml
test-actionmap: test-actionmap:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile tests/test_actionmap.py - python3 -m pytest --profile tests/test_actionmap.py
only: # only:
changes: # changes:
- share/actionsmap.yml # - share/actionsmap.yml
test-helpers: test-helpers:
extends: .test-stage extends: .test-stage
@ -72,129 +72,129 @@ test-domains:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_domains.py - python3 -m pytest --profile src/tests/test_domains.py
only: # only:
changes: # changes:
- src/domain.py # - src/domain.py
test-dns: test-dns:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_dns.py - python3 -m pytest --profile src/tests/test_dns.py
only: # only:
changes: # changes:
- src/dns.py # - src/dns.py
- src/utils/dns.py # - src/utils/dns.py
test-apps: test-apps:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_apps.py - python3 -m pytest --profile src/tests/test_apps.py
only: # only:
changes: # changes:
- src/app.py # - src/app.py
test-appscatalog: test-appscatalog:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_app_catalog.py - python3 -m pytest --profile src/tests/test_app_catalog.py
only: # only:
changes: # changes:
- src/app_calalog.py # - src/app_calalog.py
test-appurl: test-appurl:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_appurl.py - python3 -m pytest --profile src/tests/test_appurl.py
only: # only:
changes: # changes:
- src/app.py # - src/app.py
test-questions: test-questions:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_questions.py - python3 -m pytest --profile src/tests/test_questions.py
only: # only:
changes: # changes:
- src/utils/config.py # - src/utils/config.py
test-app-config: test-app-config:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_app_config.py - python3 -m pytest --profile src/tests/test_app_config.py
only: # only:
changes: # changes:
- src/app.py # - src/app.py
- src/utils/config.py # - src/utils/config.py
test-app-resources: test-app-resources:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_app_resources.py - python3 -m pytest --profile src/tests/test_app_resources.py
only: # only:
changes: # changes:
- src/app.py # - src/app.py
- src/utils/resources.py # - src/utils/resources.py
test-changeurl: test-changeurl:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_changeurl.py - python3 -m pytest --profile src/tests/test_changeurl.py
only: # only:
changes: # changes:
- src/app.py # - src/app.py
test-backuprestore: test-backuprestore:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_backuprestore.py - python3 -m pytest --profile src/tests/test_backuprestore.py
only: # only:
changes: # changes:
- src/backup.py # - src/backup.py
test-permission: test-permission:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_permission.py - python3 -m pytest --profile src/tests/test_permission.py
only: # only:
changes: # changes:
- src/permission.py # - src/permission.py
test-settings: test-settings:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_settings.py - python3 -m pytest --profile src/tests/test_settings.py
only: # only:
changes: # changes:
- src/settings.py # - src/settings.py
test-user-group: test-user-group:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_user-group.py - python3 -m pytest --profile src/tests/test_user-group.py
only: # only:
changes: # changes:
- src/user.py # - src/user.py
test-regenconf: test-regenconf:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_regenconf.py - python3 -m pytest --profile src/tests/test_regenconf.py
only: # only:
changes: # changes:
- src/regenconf.py # - src/regenconf.py
test-service: test-service:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_service.py - python3 -m pytest --profile src/tests/test_service.py
only: # only:
changes: # changes:
- src/service.py # - src/service.py
test-ldapauth: test-ldapauth:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_ldapauth.py - python3 -m pytest --profile src/tests/test_ldapauth.py
only: # only:
changes: # changes:
- src/authenticators/*.py # - src/authenticators/*.py