forked from OCA/OCB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (72 loc) · 2.42 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: python
python:
- "2.7"
sudo: false
cache: pip
apt: true
directories:
- $HOME/.cache/pip
virtualenv:
system_site_packages: false
git:
submodules: false
depth: false
services:
- postgresql
- xvfb
addons:
apt:
sources:
- pov-wkhtmltopdf
# Search your sources alias here:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
packages:
# - build-essential # Pre-installed
# - curl # Pre-installed
- expect-dev
# - less-plugin-clean-css # Pre-installed
# - lessc # Pre-installed
- libevent-dev
- libffi-dev
- libssl-dev
# - nodejs # Pre-installed
# - npm # Pre-installed
- python-dev
# - python-setuptools # Pre-installed
# - wkhtmltopdf # Pre-installed
- zlib1g
before_install:
# Use Zeroincombenze(R) tools
- git clone https://github.com/zeroincombenze/tools.git ${HOME}/tools --single-branch --depth=1
- ${HOME}/tools/install_tools.sh -qpt
- source ${HOME}/devel/activate_tools
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start
# - mv ${HOME}/tools/maintainer-quality-tools ${HOME}
install:
- travis_install_env
- export EXCLUDE=hw_scanner,hw_escpos,theme_bootswatch
# - export INCLUDE=$(getaddons.py -m ${HOME}/build/${ODOO_REPO}/odoo/addons ${HOME}/build/${ODOO_REPO}/addons)
env:
global:
- TRAVIS_DEBUG_MODE="2"
- WKHTMLTOPDF_VERSION="0.12.4"
- VERSION="10.0" TESTS="0" LINT_CHECK="0" ODOO_TNLBOT="0" WEBSITE_REPO="1"
matrix:
- LINT_CHECK="1" LINT_CHECK_LEVEL="MINIMAL"
- TESTS="1" ODOO_REPO="zeroincombenze/OCB"
# - ODOO_TNLBOT="1" ODOO_REPO="zeroincombenze/OCB"
# either use the two lines above or the two below. Don't change the default if
# it's not necessary (it is only necessary if modules in your repository can't
# be installed in the same database. And you get a huge speed penalty in your
# tests)
# - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1"
# - TESTS="1.0" ODOO_REPO="OCA/OCB" UNIT_TEST="1"
# - TESTS="1.0" ODOO_REPO="zeroincombenze/OCB" UNIT_TEST="1"
script:
- travis_run_tests
after_success:
- travis_after_tests_success