Browse Source
Merge pull request #142 from LasLabs/hotfix/8.0/runbot
[FIX][8.0] travis: Update travis file to new standard
pull/248/head
Pedro M. Baeza
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
34 additions and
11 deletions
-
.travis.yml
-
hw_customer_display/controllers/main.py
-
hw_telium_payment_terminal/controllers/main.py
-
pos_order_to_sale_order/models/sale_order.py
-
requirements.txt
|
|
@ -1,16 +1,25 @@ |
|
|
|
language: python |
|
|
|
sudo: false |
|
|
|
cache: |
|
|
|
apt: true |
|
|
|
directories: |
|
|
|
- $HOME/.cache/pip |
|
|
|
|
|
|
|
python: |
|
|
|
- "2.7" |
|
|
|
|
|
|
|
sudo: false |
|
|
|
cache: pip |
|
|
|
|
|
|
|
addons: |
|
|
|
apt: |
|
|
|
sources: |
|
|
|
- pov-wkhtmltopdf |
|
|
|
packages: |
|
|
|
- expect-dev # provides unbuffer utility |
|
|
|
- python-lxml # because pip installation is slow |
|
|
|
- wkhtmltopdf |
|
|
|
|
|
|
|
before_install: |
|
|
|
- "export DISPLAY=:99.0" |
|
|
|
- "sh -e /etc/init.d/xvfb start" |
|
|
|
|
|
|
|
env: |
|
|
|
global: |
|
|
@ -28,11 +37,10 @@ virtualenv: |
|
|
|
system_site_packages: true |
|
|
|
|
|
|
|
install: |
|
|
|
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools |
|
|
|
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools |
|
|
|
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} |
|
|
|
- travis_install_nightly |
|
|
|
- printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc |
|
|
|
- pip install unidecode pyserial pycountry |
|
|
|
|
|
|
|
script: |
|
|
|
- travis_run_tests |
|
|
|
|
|
@ -39,6 +39,12 @@ except (ImportError, IOError) as err: |
|
|
|
logger.debug(err) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
from unidecode import unidecode |
|
|
|
except ImportError: |
|
|
|
logger.info('`unidecode` Python pacakge not found') |
|
|
|
|
|
|
|
|
|
|
|
class CustomerDisplayDriver(Thread): |
|
|
|
def __init__(self): |
|
|
|
Thread.__init__(self) |
|
|
|
|
|
@ -40,6 +40,12 @@ except (ImportError, IOError) as err: |
|
|
|
logger.debug(err) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
import pycountry |
|
|
|
except ImportError: |
|
|
|
_logger.info('`pycountry` Python package not found') |
|
|
|
|
|
|
|
|
|
|
|
class TeliumPaymentTerminalDriver(Thread): |
|
|
|
def __init__(self): |
|
|
|
Thread.__init__(self) |
|
|
|
|
|
@ -39,15 +39,15 @@ class SaleOrder(models.Model): |
|
|
|
qty=line_data['qty'], |
|
|
|
partner_id=sale_order_data['partner_id'])['value'] |
|
|
|
res.update({ |
|
|
|
'product_id': line_data['product_id'], |
|
|
|
'product_uom_qty': line_data['qty'], |
|
|
|
'discount': line_data['discount'], |
|
|
|
'tax_id': [(6, False, res['tax_id'])], |
|
|
|
'product_id': line_data['product_id'], |
|
|
|
'product_uom_qty': line_data['qty'], |
|
|
|
'discount': line_data['discount'], |
|
|
|
'tax_id': [(6, False, res['tax_id'])], |
|
|
|
}) |
|
|
|
if self.env.context.get('is_pos_pricelist'): |
|
|
|
res.update({ |
|
|
|
'price_unit': line_data['price_unit'], |
|
|
|
'tax_id': line_data['tax_ids'], |
|
|
|
'price_unit': line_data['price_unit'], |
|
|
|
'tax_id': line_data['tax_ids'], |
|
|
|
}) |
|
|
|
return res |
|
|
|
|
|
|
|
|
|
@ -0,0 +1,3 @@ |
|
|
|
unidecode |
|
|
|
pyserial |
|
|
|
pycountry |