ci: remove tmp profiling stuff

This commit is contained in:
Alexandre Aubin 2023-11-28 23:52:29 +01:00
parent e7379a7ec3
commit a0d6c9a032

View file

@ -1,9 +1,6 @@
.install_debs: &install_debs .install_debs: &install_debs
- apt-get update -o Acquire::Retries=3 - apt-get update -o Acquire::Retries=3
- systemctl restart nginx || journalctl -u nginx -n 50 --no-pager --no-hostname
- DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb - DEBIAN_FRONTEND=noninteractive SUDO_FORCE_REMOVE=yes apt --assume-yes -o Dpkg::Options::="--force-confold" --allow-downgrades install ${CI_PROJECT_DIR}/*.deb
- systemctl restart nginx || journalctl -u nginx -n 50 --no-pager --no-hostname
- pip3 install pytest-profiling --break-system-packages # Tmp stuff to profile tests idk
.test-stage: .test-stage:
stage: test stage: test
@ -38,7 +35,7 @@
# - *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 --cov=yunohost tests/ src/tests/ --junitxml=report.xml
# needs: # needs:
# - job: build-yunohost # - job: build-yunohost
# artifacts: true # artifacts: true
@ -54,7 +51,7 @@
test-actionmap: test-actionmap:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile tests/test_actionmap.py - python3 -m pytest tests/test_actionmap.py
# only: # only:
# changes: # changes:
# - share/actionsmap.yml # - share/actionsmap.yml
@ -71,7 +68,7 @@ test-helpers:
test-domains: test-domains:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_domains.py - python3 -m pytest src/tests/test_domains.py
# only: # only:
# changes: # changes:
# - src/domain.py # - src/domain.py
@ -79,7 +76,7 @@ test-domains:
test-dns: test-dns:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_dns.py - python3 -m pytest src/tests/test_dns.py
# only: # only:
# changes: # changes:
# - src/dns.py # - src/dns.py
@ -88,7 +85,7 @@ test-dns:
test-apps: test-apps:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_apps.py - python3 -m pytest src/tests/test_apps.py
# only: # only:
# changes: # changes:
# - src/app.py # - src/app.py
@ -96,7 +93,7 @@ test-apps:
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 src/tests/test_app_catalog.py
# only: # only:
# changes: # changes:
# - src/app_calalog.py # - src/app_calalog.py
@ -104,7 +101,7 @@ test-appscatalog:
test-appurl: test-appurl:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_appurl.py - python3 -m pytest src/tests/test_appurl.py
# only: # only:
# changes: # changes:
# - src/app.py # - src/app.py
@ -112,7 +109,7 @@ test-appurl:
test-questions: test-questions:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_questions.py - python3 -m pytest src/tests/test_questions.py
# only: # only:
# changes: # changes:
# - src/utils/config.py # - src/utils/config.py
@ -120,7 +117,7 @@ test-questions:
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 src/tests/test_app_config.py
# only: # only:
# changes: # changes:
# - src/app.py # - src/app.py
@ -129,7 +126,7 @@ test-app-config:
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 src/tests/test_app_resources.py
# only: # only:
# changes: # changes:
# - src/app.py # - src/app.py
@ -138,7 +135,7 @@ test-app-resources:
test-changeurl: test-changeurl:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_changeurl.py - python3 -m pytest src/tests/test_changeurl.py
# only: # only:
# changes: # changes:
# - src/app.py # - src/app.py
@ -146,7 +143,7 @@ test-changeurl:
test-backuprestore: test-backuprestore:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_backuprestore.py - python3 -m pytest src/tests/test_backuprestore.py
# only: # only:
# changes: # changes:
# - src/backup.py # - src/backup.py
@ -154,7 +151,7 @@ test-backuprestore:
test-permission: test-permission:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_permission.py - python3 -m pytest src/tests/test_permission.py
# only: # only:
# changes: # changes:
# - src/permission.py # - src/permission.py
@ -162,7 +159,7 @@ test-permission:
test-settings: test-settings:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_settings.py - python3 -m pytest src/tests/test_settings.py
# only: # only:
# changes: # changes:
# - src/settings.py # - src/settings.py
@ -170,7 +167,7 @@ test-settings:
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 src/tests/test_user-group.py
# only: # only:
# changes: # changes:
# - src/user.py # - src/user.py
@ -178,7 +175,7 @@ test-user-group:
test-regenconf: test-regenconf:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_regenconf.py - python3 -m pytest src/tests/test_regenconf.py
# only: # only:
# changes: # changes:
# - src/regenconf.py # - src/regenconf.py
@ -186,7 +183,7 @@ test-regenconf:
test-service: test-service:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_service.py - python3 -m pytest src/tests/test_service.py
# only: # only:
# changes: # changes:
# - src/service.py # - src/service.py
@ -194,7 +191,7 @@ test-service:
test-ldapauth: test-ldapauth:
extends: .test-stage extends: .test-stage
script: script:
- python3 -m pytest --profile src/tests/test_ldapauth.py - python3 -m pytest src/tests/test_ldapauth.py
# only: # only:
# changes: # changes:
# - src/authenticators/*.py # - src/authenticators/*.py