-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
51 lines (41 loc) · 1.29 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
sudo: required
dist: trusty
language: python
python:
- "2.7"
- "3.5"
- "3.6"
cache:
pip: true
apt: true
env:
global:
- TEST_DB_SERVICE=1
- TEST_WITH_EXTENSIONS=1
- ODOO_INST_PATH=/tmp/odoo-inst
matrix:
- ODOO_VERSION="9.0"
- ODOO_VERSION="10.0"
TEST_SKIP_WORKFLOW=1
- ODOO_VERSION="11.0"
TEST_SKIP_WORKFLOW=1
install:
- "wget -O /tmp/odoo-helper-install.bash https://raw.githubusercontent.com/katyukha/odoo-helper-scripts/master/install-system.bash"
- "sudo bash /tmp/odoo-helper-install.bash"
- "sudo odoo-helper install pre-requirements -y"
- "sudo odoo-helper postgres user-create odoo odoo"
- "odoo-helper install sys-deps -y ${ODOO_VERSION}"
- "odoo-install -i $ODOO_INST_PATH --odoo-version ${ODOO_VERSION}"
# Normal install
- "pip install --upgrade 'coveralls>=1.1' 'ipython[notebook]>=4' 'setuptools>=18' pbr 'anyfield>=0.1.2' 'flake8>=3'"
- "python setup.py develop"
before_script:
# Start odoo instance
- "CDIR42=$(pwd) && cd $ODOO_INST_PATH && odoo-helper start && cd $CDIR42"
- "sleep 3"
script:
- "flake8 openerp_proxy --count --statistics;" # test code style
- "openerp_proxy <<< 'print(42);exit';" # Test that it runs via 'openerp_proxy' command
- "bash ./scripts/ci_run_tests.bash"
after_success:
- coveralls