mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
update travis config, setup transifex
This commit is contained in:
23
.travis.yml
23
.travis.yml
@@ -1,5 +1,9 @@
|
||||
# Config file .travis.yml
|
||||
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
|
||||
sudo: false
|
||||
cache: pip
|
||||
|
||||
@@ -9,15 +13,16 @@ addons:
|
||||
- expect-dev # provides unbuffer utility
|
||||
- python-lxml # because pip installation is slow
|
||||
|
||||
language: python
|
||||
|
||||
python:
|
||||
- "2.7"
|
||||
|
||||
env:
|
||||
- VERSION="8.0" LINT_CHECK="1"
|
||||
- VERSION="8.0" ODOO_REPO="odoo/odoo" LINT_CHECK="0"
|
||||
- VERSION="8.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0"
|
||||
global:
|
||||
- VERSION="8.0" TESTS="0" LINT_CHECK="0"
|
||||
- TRANSIFEX_USER='transbot@odoo-community.org'
|
||||
- secure: tDsvZaY3JqmnjgyRuKkgQRtlRILkkjnHtZPWWaGg+KBD+BBH4AqX5ACTyu5U/J6Kr/Yb5NIoM3+NYRuASdGXnJb9siZvh/9B58B1wKUbC2umH4Yrpw66CEvG9JY4XMOCZni9kQBwQ7iMk5GfusDWuVuydZjd6dAqkCxz6JdkIco=
|
||||
matrix:
|
||||
- LINT_CHECK="1"
|
||||
- TRANSIFEX="1"
|
||||
- TESTS=1 ODOO_REPO="odoo/odoo" LINT_CHECK="0"
|
||||
- TESTS=1 ODOO_REPO="OCA/OCB" LINT_CHECK="0"
|
||||
|
||||
virtualenv:
|
||||
system_site_packages: true
|
||||
@@ -33,4 +38,4 @@ script:
|
||||
- travis_run_tests
|
||||
|
||||
after_success:
|
||||
coveralls
|
||||
- travis_after_tests_success
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
The procurement linked to the orderpoint must be in exception (no routes configured)
|
||||
-
|
||||
!python {model: stock.warehouse.orderpoint}: |
|
||||
orderpoint = self.browse(cr, uid, ref('sorbet_orderpoint'))
|
||||
orderpoint = self.browse(cr, uid, ref('stock_reserve.sorbet_orderpoint'))
|
||||
assert orderpoint.procurement_ids[0].state == 'exception', 'procurement must be in exception as there is no rule for procurement'
|
||||
import math
|
||||
assert orderpoint.procurement_ids[0].product_qty == math.ceil(15 - 3.5), 'wrong product qty ordered'
|
||||
|
||||
Reference in New Issue
Block a user