forked from shopinvader/odoo-shopinvader
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
59 lines (49 loc) · 1.91 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
sudo: false
addons:
postgresql: "9.6"
apt:
packages:
- expect-dev # provides unbuffer utility
language: python
stages:
- linting
- test
python:
- "2.7"
jobs:
include:
- stage: linting
name: "Pre-Commit"
python: 3.6
install: pip install pre_commit
script: pre-commit run --all
env:
global:
- VERSION="10.0" TESTS="1" LINT_CHECK="0" ERRORS_IGNORE="Wrong HTTP_API_KEY;RESTFULL call to url"
matrix:
- TESTS="0" LINT_CHECK="1"
- ODOO_REPO="odoo/odoo"
# for speed reason all dependency are preinstalled in OCA script,
# stock module add specific required field that can make failed
# the test of module that do not depend of stock module
# same issue for base_url that fail if the mail module is preinstalled
- UNIT_TEST="1" ODOO_REPO="OCA/OCB" EXCLUDE="product_stock_state,shopinvader_product_stock,shopinvader_product_stock_state,shopinvader_delivery_carrier,base_url"
- UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="product_stock_state,shopinvader_product_stock,shopinvader_product_stock_state,shopinvader_delivery_carrier"
- UNIT_TEST="1" ODOO_REPO="OCA/OCB" INCLUDE="base_url"
install:
- git clone -b configure_line_with_error https://github.com/akretion/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
- pip install pylint==1.8.4
- printf '[options]\n\nrunning_env = dev\nkeychain_key_dev = HRdthrkXp28SCHX0kmwOgIob-82N-w8zWoE_UsctE7E=' > ${HOME}/.openerp_serverrc
- git clone https://github.com/akretion/akretion-quality-tools ${HOME}/akretion-quality-tools
- export PATH=${HOME}/akretion-quality-tools/travis:${PATH}
- export PATH=.travis:${PATH}
- travis_configure
script:
- mv .isort.cfg .isoft.cfg.disabled # to avoid trouble with pylint
- travis_run_tests
after_success:
- travis_after_tests_success
after_script:
- travis_delete_algolia_index