Skip to content

Commit 62165d9

Browse files
authored
Merge pull request #14 from guewen/travis-runtests
Run 'runtests' in travis
2 parents f27736f + 7dc3a15 commit 62165d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ test:
5050
sed 's|FROM .*|FROM $(IMAGE_LATEST)|' -i $(TMP)/odoo/Dockerfile
5151
cat $(TMP)/odoo/Dockerfile
5252
cd $(TMP) && docker-compose run --rm -e LOCAL_USER_ID=$(shell id -u) odoo odoo --stop-after-init
53+
cd $(TMP) && docker-compose run --rm -e LOCAL_USER_ID=$(shell id -u) odoo runtests
5354
cd $(TMP) && docker-compose down
5455
rm -f /tmp/odoo.tar.gz
5556
rm -rf $(TMP)

bin/runtests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ fi
2626
DB_NAME_TEST=${DB_NAME}_test
2727

2828
PGPASSWORD=$DB_PASSWORD createdb -h db -U $DB_USER -O $DB_USER ${DB_NAME_TEST}
29-
odoo --stop-after-init --workers=0 --database $DB_NAME_TEST --log-level=warn -i ${LOCAL_ADDONS}
30-
odoo --stop-after-init --workers=0 --database $DB_NAME_TEST --test-enable -u ${LOCAL_ADDONS}
29+
odoo --stop-after-init --workers=0 --database $DB_NAME_TEST --log-level=warn --without-demo="" -i ${LOCAL_ADDONS}
30+
odoo --stop-after-init --workers=0 --database $DB_NAME_TEST --test-enable --log-level=test --log-handler=":INFO" -u ${LOCAL_ADDONS}
3131
PGPASSWORD=$DB_PASSWORD dropdb -h db -U $DB_USER ${DB_NAME_TEST}

0 commit comments

Comments
 (0)