changeset 4fafa1778bb1 in tryton-docker:default
details: https://hg.tryton.org/tryton-docker?cmd=changeset;node=4fafa1778bb1
description:
        Run tests before pushing images

        issue8283
        review262561002
diffstat:

 update.sh |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r 6d9ffd9fcd95 -r 4fafa1778bb1 update.sh
--- a/update.sh Sat Nov 23 02:02:12 2019 +0100
+++ b/update.sh Wed Dec 11 22:20:57 2019 +0100
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -e
 
 docker build -q --rm --no-cache -t tryton/tryton:5.4 -t tryton/tryton:latest 
5.4
 docker build -q --rm --no-cache -t tryton/tryton:5.4-office -t 
tryton/tryton:office 5.4/office
@@ -7,6 +8,10 @@
 docker build -q --rm --no-cache -t tryton/tryton:5.0 5.0
 docker build -q --rm --no-cache -t tryton/tryton:5.0-office 5.0/office
 
+docker run --rm --env DB_CACHE=/tmp --env TRYTOND_DATABASE_URI=sqlite:// 
tryton/tryton:5.4 python3 -m trytond.tests.run-tests -m
+docker run --rm --env DB_CACHE=/tmp --env TRYTOND_DATABASE_URI=sqlite:// 
tryton/tryton:5.2 python3 -m trytond.tests.run-tests -m
+docker run --rm --env DB_CACHE=/tmp --env TRYTOND_DATABASE_URI=sqlite:// 
tryton/tryton:5.0 python3 -m trytond.tests.run-tests -m
+
 docker push tryton/tryton:5.0-office
 docker push tryton/tryton:5.0
 docker push tryton/tryton:5.2-office

Reply via email to