Skip to content

Commit 1b70197

Browse files
committed
Run tests in Travis
1 parent 6feb9ba commit 1b70197

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
script:
1111
- make VERSION=$VERSION build
12-
- travis/test.sh
12+
- make VERSION=$VERSION test
1313

1414
after_success:
1515
- travis/publish.sh

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ test:
4444
$(eval TMP := $(shell mktemp -u))
4545
cp -r example $(TMP)
4646
rm -rf $(TMP)/odoo/src
47-
wget -nv -c -O /tmp/odoo.tar.gz $(ODOO_URL)
47+
wget -nv -O /tmp/odoo.tar.gz $(ODOO_URL)
4848
tar xfz /tmp/odoo.tar.gz -C $(TMP)/odoo/
4949
mv $(TMP)/odoo/odoo-$(VERSION) $(TMP)/odoo/src
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 down
5354
rm -f /tmp/odoo.tar.gz
5455
rm -rf $(TMP)

example/odoo/songs/install/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def setup_company(ctx, req):
2424
'city': "There",
2525
'parent_id': company.id,
2626
'logo': logo,
27+
'currency_id': ctx.env.ref('base.CHF').id
2728
}
2829
create_or_update(ctx, 'res.company', '__setup__.company_rainbow', values)
2930

travis/test.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)