-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.85 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
51
52
53
54
language: python
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip
python:
- "2.7.13"
addons:
apt:
packages:
- expect-dev # provides unbuffer utility
- poppler-utils # document index
- antiword # document index
env:
global:
- VERSION="8.0" ODOO_REPO="OCA/OCB" LINT_CHECK="0" WEBSITE_REPO="1"
- WKHTMLTOPDF_VERSION="0.12.4"
- EXCLUDE="hw_escpos,hw_scanner"
matrix:
- INCLUDE="applications"
- INCLUDE="no_applications" TESTS="1"
- INCLUDE="localization"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- 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
- rm -rf ${HOME}/${ODOO_REPO#*/}-${VERSION}; ln -s ${TRAVIS_BUILD_DIR} ${HOME}/${ODOO_REPO#*/}-${VERSION}
- pip install gengo
- cp ${HOME}/maintainer-quality-tools/cfg/.coveragerc .
script:
- if [ $INCLUDE = 'applications' ]; then
sed -i "s/self.url_open(url)/self.url_open(url, timeout=100)/g" ${TRAVIS_BUILD_DIR}/addons/website/tests/test_crawl.py;
export INCLUDE=$(getaddons.py -m --only-applications ${HOME}/build/${ODOO_REPO}/openerp/addons ${HOME}/build/${ODOO_REPO}/addons);
elif [ $INCLUDE = 'no_applications' ]; then
export INCLUDE=$(getaddons.py -m --exclude-applications --exclude-localization ${HOME}/build/${ODOO_REPO}/openerp/addons ${HOME}/build/${ODOO_REPO}/addons);
elif [ $INCLUDE = 'localization' ]; then
export INCLUDE=$(getaddons.py -m --only-localization ${HOME}/build/${ODOO_REPO}/openerp/addons ${HOME}/build/${ODOO_REPO}/addons);
fi
- SERVER_PATH=${HOME}/${ODOO_REPO#*/}-${VERSION}
- export TRAVIS_BUILD_DIR=${SERVER_PATH}/openerp/addons
- travis_run_tests
after_success:
- travis_after_tests_success