Skip to content
Snippets Groups Projects
Commit 9e8ce3f0 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Test only by activate all modules

parent 54122a9d
No related branches found
No related tags found
1 merge request!32Speedup tests
Pipeline #98212 passed
......@@ -54,5 +54,4 @@
- build
image: ${CI_REGISTRY_IMAGE}/tryton:${SERIES}-${CI_PIPELINE_IID}
variables:
DB_CACHE: /tmp
TRYTOND_DATABASE_URI: sqlite://
......@@ -58,2 +57,3 @@
TRYTOND_DATABASE_URI: sqlite://
TRYTOND_DATABASE__PATH: /tmp
script:
......@@ -59,7 +59,10 @@
script:
- python3 -m unittest discover -vv -f -s trytond.tests
- python3 -m unittest discover -vv -f -s trytond.modules -p test_module.py
- touch /tmp/test.sqlite
- echo "password" > /tmp/password
- TRYTONPASSFILE=/tmp/password trytond-admin -d test --all --email "foundation@tryton.org"
- modules=$(python3 -c "from trytond.modules import get_modules; print(' '.join(get_modules()))")
- trytond-admin -d test -u $modules -vv
parallel:
matrix:
- SERIES: ["7.0", "7.2", "7.4"]
......@@ -62,7 +65,7 @@
parallel:
matrix:
- SERIES: ["7.0", "7.2", "7.4"]
test-run:
test-old:
extends: test
script:
......@@ -67,6 +70,10 @@
extends: test
script:
- python3 -m trytond.tests.run-tests -vv -f -m --no-doctest
- touch /tmp/test.sqlite
- echo "password" > /tmp/password
- TRYTONPASSFILE=/tmp/password trytond-admin -d test --all --email "foundation@tryton.org"
- modules=$(python3 -c "from trytond.modules import get_module_list; print(' '.join(get_module_list()))")
- trytond-admin -d test -u $modules -vv
parallel:
matrix:
- SERIES: ["6.0"]
......@@ -77,7 +84,7 @@
needs:
- build
- test
- test-run
- test-old
image:
name: gcr.io/go-containerregistry/crane:debug
entrypoint: [""]
......@@ -93,7 +100,7 @@
needs:
- build-office
- test
- test-run
- test-old
script:
- crane auth login -u ${DOCKER_USER} -p ${DOCKER_PASSWORD} ${DOCKER_SERVER}
- crane push image-${SERIES}-office.tar tryton/tryton:${SERIES}-office
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment