forked from OCA/OCB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 2.61 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: python
sudo: false
cache: pip
python:
- "3.5"
addons:
apt:
# only add the two lines below if you need wkhtmltopdf for your tests
# sources:
# - pov-wkhtmltopdf
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- python-simplejson
- python-serial
- python-yaml
# - wkhtmltopdf # only add if needed and check the before_install section below
# set up an X server to run wkhtmltopdf.
#before_install:
# - "export DISPLAY=:911.0"
# - "sh -e /etc/init.d/xvfb start"
env:
- VERSION="11.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0" TESTS="1"
install:
- ln -s ${HOME}/build/${ODOO_REPO} ${HOME}/${ODOO_REPO#*/}-${VERSION}
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- pip install -Ur ${HOME}/maintainer-quality-tools/requirements.txt
- pip install -Ur ${HOME}/build/${ODOO_REPO}/requirements.txt
- pip install -q QUnitSuite flake8 coveralls pylint
- npm install -g less less-plugin-clean-css
- (cd ${HOME}/maintainer-quality-tools/travis/ && wget -qO- -t 1 --timeout=240 https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | tar -xJ --strip-components=2 wkhtmltox/bin/wkhtmltopdf)
- sed -i "s/'phantomjs'/'disable_phantomjs'/g" ${TRAVIS_BUILD_DIR}/odoo/tests/common.py
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- export INCLUDE=$(getaddons.py -m ${HOME}/build/${ODOO_REPO}/addons)
- export EXCLUDE=base_gengo,website_gengo,hw_scanner,hw_escpos,theme_bootswatch,l10n_ae,l10n_ar,l10n_at,l10n_au,l10n_be,l10n_be_hr_payroll,l10n_be_hr_payroll_account,l10n_be_hr_payroll_fleet,l10n_be_intrastat,l10n_be_invoice_bba,l10n_bo,l10n_br,l10n_ca,l10n_ch,l10n_cl,l10n_cn,l10n_cn_small_business,l10n_cn_standard,l10n_co,l10n_cr,l10n_de,l10n_de_skr03,l10n_de_skr04,l10n_do,l10n_ec,l10n_es,l10n_et,l10n_eu_service,l10n_fr,l10n_fr_certification,l10n_fr_fec,l10n_fr_hr_payroll,l10n_fr_pos_cert,l10n_fr_sale_closing,l10n_generic_coa,l10n_gr,l10n_gt,l10n_hn,l10n_hr,l10n_hu,l10n_in,l10n_in_hr_payroll,l10n_in_purchase,l10n_in_sale,l10n_in_schedule6,l10n_in_stock,l10n_it,l10n_jp,l10n_lu,l10n_ma,l10n_multilang,l10n_mx,l10n_nl,l10n_no,l10n_nz,l10n_pa,l10n_pe,l10n_pl,l10n_pt,l10n_ro,l10n_sa,l10n_sg,l10n_si,l10n_syscohada,l10n_th,l10n_tr,l10n_uk,l10n_us,l10n_uy,l10n_ve,l10n_vn
- cp ${HOME}/maintainer-quality-tools/cfg/.coveragerc .
script:
- SERVER_PATH=${HOME}/${ODOO_REPO#*/}-${VERSION}
- export TRAVIS_BUILD_DIR=${SERVER_PATH}/odoo/addons
- travis_run_tests
after_success:
- travis_after_tests_success