mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ci: new image names, now using 'shared' image build process with the appci
This commit is contained in:
parent
44920d8914
commit
fe9a4fba5d
5 changed files with 9 additions and 82 deletions
|
@ -1,6 +1,6 @@
|
||||||
generate-helpers-doc:
|
generate-helpers-doc:
|
||||||
stage: bot
|
stage: bot
|
||||||
image: "before-install"
|
image: "build-and-lint"
|
||||||
needs: []
|
needs: []
|
||||||
before_script:
|
before_script:
|
||||||
- git config --global user.email "yunohost@yunohost.org"
|
- git config --global user.email "yunohost@yunohost.org"
|
||||||
|
@ -30,7 +30,7 @@ generate-helpers-doc:
|
||||||
|
|
||||||
autofix-translated-strings:
|
autofix-translated-strings:
|
||||||
stage: bot
|
stage: bot
|
||||||
image: "before-install"
|
image: "build-and-lint"
|
||||||
needs: []
|
needs: []
|
||||||
before_script:
|
before_script:
|
||||||
- git config --global user.email "yunohost@yunohost.org"
|
- git config --global user.email "yunohost@yunohost.org"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
needs:
|
needs:
|
||||||
- job: actionsmap
|
- job: actionsmap
|
||||||
- job: invalidcode311
|
- job: invalidcode311
|
||||||
image: "before-install"
|
image: "build-and-lint"
|
||||||
variables:
|
variables:
|
||||||
YNH_SOURCE: "https://github.com/yunohost"
|
YNH_SOURCE: "https://github.com/yunohost"
|
||||||
YNH_DEBIAN: "bookworm"
|
YNH_DEBIAN: "bookworm"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
upgrade:
|
upgrade:
|
||||||
extends: .install-stage
|
extends: .install-stage
|
||||||
image: "after-install"
|
image: "core-tests"
|
||||||
script:
|
script:
|
||||||
- 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
|
- systemctl restart nginx || journalctl -u nginx -n 50 --no-pager --no-hostname
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
actionsmap:
|
actionsmap:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: "before-install"
|
image: "build-and-lint"
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- python -c 'import yaml; yaml.safe_load(open("share/actionsmap.yml"))'
|
- python -c 'import yaml; yaml.safe_load(open("share/actionsmap.yml"))'
|
||||||
|
@ -13,7 +13,7 @@ actionsmap:
|
||||||
|
|
||||||
lint311:
|
lint311:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: "before-install"
|
image: "build-and-lint"
|
||||||
needs: []
|
needs: []
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
|
@ -21,14 +21,14 @@ lint311:
|
||||||
|
|
||||||
invalidcode311:
|
invalidcode311:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: "before-install"
|
image: "build-and-lint"
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- tox -e py311-invalidcode
|
- tox -e py311-invalidcode
|
||||||
|
|
||||||
mypy:
|
mypy:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: "before-install"
|
image: "build-and-lint"
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
script:
|
||||||
- tox -e py311-mypy
|
- tox -e py311-mypy
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
.test-stage:
|
.test-stage:
|
||||||
stage: test
|
stage: test
|
||||||
image: "after-install"
|
image: "cote-tests"
|
||||||
variables:
|
variables:
|
||||||
PYTEST_ADDOPTS: "--color=yes"
|
PYTEST_ADDOPTS: "--color=yes"
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -26,28 +26,6 @@
|
||||||
# TESTS
|
# TESTS
|
||||||
########################################
|
########################################
|
||||||
|
|
||||||
#full-tests:
|
|
||||||
# stage: test
|
|
||||||
# image: "before-install"
|
|
||||||
# variables:
|
|
||||||
# PYTEST_ADDOPTS: "--color=yes"
|
|
||||||
# before_script:
|
|
||||||
# - *install_debs
|
|
||||||
# - yunohost tools postinstall -d domain.tld -u syssa -F 'Syssa Mine' -p the_password --ignore-dyndns --force-diskspace
|
|
||||||
# script:
|
|
||||||
# - python3 -m pytest --cov=yunohost tests/ src/tests/ --junitxml=report.xml
|
|
||||||
# needs:
|
|
||||||
# - job: build-yunohost
|
|
||||||
# artifacts: true
|
|
||||||
# - job: build-ssowat
|
|
||||||
# artifacts: true
|
|
||||||
# - job: build-moulinette
|
|
||||||
# artifacts: true
|
|
||||||
# coverage: '/TOTAL.*\s+(\d+%)/'
|
|
||||||
# artifacts:
|
|
||||||
# reports:
|
|
||||||
# junit: report.xml
|
|
||||||
|
|
||||||
test-helpers2:
|
test-helpers2:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
|
@ -64,132 +42,81 @@ test-domains:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_domains.py
|
- python3 -m pytest src/tests/test_domains.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/domain.py
|
|
||||||
|
|
||||||
test-dns:
|
test-dns:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_dns.py
|
- python3 -m pytest src/tests/test_dns.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/dns.py
|
|
||||||
# - src/utils/dns.py
|
|
||||||
|
|
||||||
test-apps:
|
test-apps:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_apps.py
|
- python3 -m pytest src/tests/test_apps.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/app.py
|
|
||||||
|
|
||||||
test-appscatalog:
|
test-appscatalog:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_app_catalog.py
|
- python3 -m pytest src/tests/test_app_catalog.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/app_calalog.py
|
|
||||||
|
|
||||||
test-appurl:
|
test-appurl:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_appurl.py
|
- python3 -m pytest src/tests/test_appurl.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/app.py
|
|
||||||
|
|
||||||
test-questions:
|
test-questions:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_questions.py
|
- python3 -m pytest src/tests/test_questions.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/utils/config.py
|
|
||||||
|
|
||||||
test-app-config:
|
test-app-config:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_app_config.py
|
- python3 -m pytest src/tests/test_app_config.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/app.py
|
|
||||||
# - src/utils/config.py
|
|
||||||
|
|
||||||
test-app-resources:
|
test-app-resources:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_app_resources.py
|
- python3 -m pytest src/tests/test_app_resources.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/app.py
|
|
||||||
# - src/utils/resources.py
|
|
||||||
|
|
||||||
test-changeurl:
|
test-changeurl:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_changeurl.py
|
- python3 -m pytest src/tests/test_changeurl.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/app.py
|
|
||||||
|
|
||||||
test-backuprestore:
|
test-backuprestore:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_backuprestore.py
|
- python3 -m pytest src/tests/test_backuprestore.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/backup.py
|
|
||||||
|
|
||||||
test-permission:
|
test-permission:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_permission.py
|
- python3 -m pytest src/tests/test_permission.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/permission.py
|
|
||||||
|
|
||||||
test-settings:
|
test-settings:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_settings.py
|
- python3 -m pytest src/tests/test_settings.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/settings.py
|
|
||||||
|
|
||||||
test-user-group:
|
test-user-group:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_user-group.py
|
- python3 -m pytest src/tests/test_user-group.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/user.py
|
|
||||||
|
|
||||||
test-regenconf:
|
test-regenconf:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_regenconf.py
|
- python3 -m pytest src/tests/test_regenconf.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/regenconf.py
|
|
||||||
|
|
||||||
test-service:
|
test-service:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_service.py
|
- python3 -m pytest src/tests/test_service.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/service.py
|
|
||||||
|
|
||||||
test-ldapauth:
|
test-ldapauth:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
script:
|
script:
|
||||||
- python3 -m pytest src/tests/test_ldapauth.py
|
- python3 -m pytest src/tests/test_ldapauth.py
|
||||||
# only:
|
|
||||||
# changes:
|
|
||||||
# - src/authenticators/*.py
|
|
||||||
|
|
||||||
test-sso-and-portalapi:
|
test-sso-and-portalapi:
|
||||||
extends: .test-stage
|
extends: .test-stage
|
||||||
|
|
Loading…
Add table
Reference in a new issue