Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract queue_job module from connector #1

Merged
merged 767 commits into from Jan 6, 2017
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
767 commits
Select commit Hold shift + click to select a range
cdcd146
[FIX] connector-runner: do not attempt to auto-create/auto-configure …
sbidoul Apr 12, 2015
b835ceb
[IMP] connector-runner: more new-style classes
sbidoul Apr 12, 2015
a50fbe1
[IMP] connector-runner: do not NOTIFY when deleting done jobs
sbidoul Apr 14, 2015
6434b4b
[FIX] connector-runner: use string type for datetime
sbidoul Apr 21, 2015
10a738d
[IMP] connector-runner: tweak logging
sbidoul Apr 21, 2015
88d990c
[IMP] connector-runner: job id is a perfectly good proxy for seq
sbidoul Apr 26, 2015
d20fe1b
[FIX] connector-runner: fix time zone issue when enqueing jobs
sbidoul May 8, 2015
c584bc5
[IMP] connector-runner: remove ODOO_CONNECTOR_ENABLE environment vari…
sbidoul May 13, 2015
e93e211
[IMP] connector-runner: handle changes in job scheduling properties
sbidoul May 13, 2015
92659c1
[IMP] connector-runner: remove obsolete TODO
sbidoul May 13, 2015
9eae1c7
[WIP] connector-runner: sphinx documentation
sbidoul May 13, 2015
ca058eb
[IMP] connector-runner: refactor handling of 'now'
sbidoul May 14, 2015
5993af0
[IMP] connector-runner: doctest formatting
sbidoul May 14, 2015
e98d1be
[IMP] connector-runner: support missing root prefix in channel names
sbidoul May 14, 2015
f1b701a
[IMP] connector-runner: high level doctest for the ChannelManager
sbidoul May 14, 2015
30f4fa9
[IMP] connector-runner: tiny refactoring in channel name config
sbidoul May 14, 2015
7fd8994
[FIX] connector-runner: documentation typos
sbidoul May 15, 2015
95a5129
Release 3.1.0
guewen May 15, 2015
9bc7cd1
Wrong arguments position in a log message
guewen May 15, 2015
b599cc5
[IMP] connector-runner: graceful stop mechanism
sbidoul May 16, 2015
b346e09
Add bug tracker link on README.rst
yvaucher May 22, 2015
8ccc6ae
Add tests on jobs and channels models
guewen Apr 24, 2015
568ba1d
Allow to assign a default channel on @job functions
guewen Apr 24, 2015
009a1b4
[IMP] add attribute 'exported_fields'on Mapper classes to list the ex…
bguillot May 25, 2015
d1c1ffa
[FIX] remove useless print
bguillot May 28, 2015
eeba0fd
[ADD] support function on direct fields
bguillot Jun 1, 2015
0dcab75
[IMP] rename exported_fields to changed_by_fields
bguillot Jun 1, 2015
9d74f04
[ADD] comment
bguillot Jun 1, 2015
e979570
See if we can remove install_in_connector() by checking in ir.module.…
Jun 1, 2015
87afcce
Update doc
Jun 1, 2015
fe7af70
Fix, the method 'module_uninstall' invalid the ormcache of is_module_…
Jun 1, 2015
3b001c7
[FIX] change list to set and fix nested direct functions
bguillot Jun 1, 2015
79a47c7
improve comparaison test
Jun 1, 2015
5a557c4
[IMP] add tests for _changed_by_fields attribute
bguillot Jun 1, 2015
3e3a4b4
[FIX] use staticmethod to keep _mapping_field_name() inside the metac…
bguillot Jun 1, 2015
c34e016
[FIX] _mapping_field_name()
bguillot Jun 1, 2015
ca28d97
[FIX] useless blank line
bguillot Jun 1, 2015
f37c426
Merge pull request #70 from yvaucher/8.0-add-bug-tracker-link
guewen Jun 1, 2015
c905c78
no need to call self.env['ir.module.module'] in ir.module.module model
Jun 1, 2015
a0567cc
no check a boolean value with None value
Jun 1, 2015
238bc12
[FIX] clean code
bguillot Jun 1, 2015
259deba
[FIX] rename method
bguillot Jun 1, 2015
cf207f0
[FIX] flake8
bguillot Jun 1, 2015
9cdc3e2
Fix is_module_installed function, check if one model of the module co…
Jun 2, 2015
9bd3c80
Fix unittest, when test is called by odoo, the module are not in the …
Jun 2, 2015
5ccf06f
[FIX] get the exact field name (mapping the closure entries)
bguillot Jun 2, 2015
157eb51
Invalid cache in write method only if the state is in the value to up…
Jun 2, 2015
6fb8e19
Update docstrings by Guewen (c2c)
Jun 2, 2015
d91ea03
Set Odoo path from travis environ
guewen Jun 1, 2015
8c59f70
Use odoo-sphinx-autodoc to build correctly the doc
guewen Jun 2, 2015
2fa6955
New test: check if the cache is different for different modules
guewen Jun 3, 2015
5b1a7f9
Rename module.py to ir_module_module.py
guewen Jun 3, 2015
a048a9b
Test the cache invalidation on 'base' instead of 'connector'
guewen Jun 3, 2015
14a5f77
Remove useless trick in is_module_installed
guewen Jun 3, 2015
701dc84
Merge pull request #74 from jssuzanne/8.0
guewen Jun 3, 2015
15ec121
Merge pull request #77 from guewen/doc-build-no-buildout
pedrobaeza Jun 4, 2015
eaac6dc
[IMP] job view
bealdav Jun 4, 2015
8686ad7
Merge pull request #78 from akretion/8-job-form-view
pedrobaeza Jun 5, 2015
ea7c5a6
Merge pull request #69 from acsone/8.0-runnerstop-sbi
guewen Jun 9, 2015
2a49648
Merge pull request #73 from akretion/8.0_smart-export
guewen Jun 9, 2015
ddb4f2d
[FIX] common.DB is gone in 8.0 stable
sbidoul Jun 12, 2015
8540f4f
[DOC] small improvent
mathi123 Jun 16, 2015
bc9fb3c
manage retryable job with runner
Jul 2, 2015
64f868d
Add an index on queue_job.worker_id
guewen Jul 2, 2015
cfab89e
Merge pull request #89 from guewen/8.0-connector-worker_id-index
pedrobaeza Jul 3, 2015
369ab36
[IMP] Add retry pattern for jobs
JosDeGraeve Jun 1, 2015
ad75904
FIX: sort the retry dictionairy by retry count
JosDeGraeve Jun 1, 2015
b57167a
Keep the retry pattern on the @job definition rather than in jobs
guewen Jun 2, 2015
1f21a7d
Use seconds of the higher retry count of the retry pattern
guewen Jun 2, 2015
dd7a41a
Remove field queue_job.retry_pattern
guewen Jun 9, 2015
f28b078
Add line in the changes file
guewen Jul 3, 2015
e66c00c
Mapper: add modifier to follow m2o relations
LeartS Jul 14, 2015
5639363
Add simple test case and fix PEP8
LeartS Jul 14, 2015
e00e20d
Move fields to avoid jobs view overflows
guewen Jul 23, 2015
931473a
A None capacity means infinite. Fix logging error
guewen Jul 24, 2015
e25c2c1
Do not pass self as 'message' of set_pending()
guewen Jul 24, 2015
ff09875
[FIX] seconds defaults to RETRY_INTERVAL when no retry_pattern is spe…
Jul 24, 2015
9ee8767
Merge pull request #101 from guewen/8.0-runjobcontroller-result
nhomar Jul 24, 2015
daa3b6b
[FIX] retry_pattern in job decorator.
Jul 27, 2015
3989c09
Merge pull request #98 from guewen/none-capacity-error
pedrobaeza Jul 30, 2015
fd10603
Merge pull request #105 from taktik/8.0-fix-retry-pattern-decorator
guewen Aug 17, 2015
2160976
Merge pull request #103 from taktik/8.0-fix-timedelta
guewen Aug 17, 2015
da32bd8
create environment with a classmethod
Aug 20, 2015
9daeed4
FIX: pep8
Aug 20, 2015
6bd03b2
Added unittests
Aug 20, 2015
17018c6
FIX: Make sure kwargs is instantiated
Aug 20, 2015
3843a99
FIX: documentation / ADD: authors and changes
Aug 20, 2015
407a011
FIX: Typo in CHANGES.rst / DOC: py:meth instead py:class
Aug 20, 2015
e49b435
OCA Transbot updated translations from Transifex
oca-transbot Sep 1, 2015
8dbc547
Implemented a default binder to avoid reimplementing it in each conne…
ccomb Jun 2, 2015
a67bc29
Mention the default implementation is the doc
ccomb Jun 2, 2015
eb801c8
Correct flake8 warning: long line
guewen Jul 3, 2015
74c39fb
Slight changes in the docstrings
guewen Jul 3, 2015
ca11fb4
Binder.to_openerp() always returns a recordset
guewen Jul 3, 2015
14ed159
Add a line in the changes file
guewen Jul 3, 2015
bdccf3e
Merge pull request #97 from guewen/8.0-job-view-overflow
gurneyalex Sep 10, 2015
fab93d5
Release 3.2.0
guewen Sep 10, 2015
06e7f0f
Correct the authors list: missing company
guewen Sep 11, 2015
38ffb10
OCA Transbot updated translations from Transifex
oca-transbot Sep 13, 2015
400ef20
Add OCA icon
flotho Aug 21, 2015
cc25dd3
[IMP] improve job runner documentation
sbidoul Sep 26, 2015
7118708
[IMP] mention web_kanban in the --load option as it is the odoo default
sbidoul Sep 26, 2015
c360a74
[IMP] answer another jobrunner FAQ in the documentation
sbidoul Sep 28, 2015
fa324f8
Merge pull request #119 from MindAndGo/8.0-product-template-view
lepistone Oct 5, 2015
109f9eb
Allow to define seconds when raising RetryableJobError
guewen Oct 6, 2015
141658b
Allow to ignore the retry counter when raising RetryableJobError
guewen Oct 6, 2015
c648514
Exception should be raised with arguments
guewen Oct 7, 2015
8e02131
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
7726db7
OCA Transbot updated translations from Transifex
oca-transbot Oct 11, 2015
e4b5248
Add WooCommerce connector link in documentation
guewen Oct 13, 2015
e301758
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
bdbff5c
Check if a module is installed from the registry
guewen Oct 15, 2015
42467c2
Merge pull request #124 from guewen/retryable-exception-seconds
lmignon Oct 16, 2015
a175339
OCA Transbot updated translations from Transifex
oca-transbot Oct 18, 2015
170b17b
Add 'mock_job_delay_to_direct' to ease tests on jobs
guewen Oct 1, 2015
a06646e
[FIX] Set job to failed after non-retryable OperationalError
npiganeau Oct 26, 2015
f1fbc9c
Merge pull request #132 from npiganeau/8.0-fail-nr-operror
pedrobaeza Oct 27, 2015
42020c0
[FIX] Yield session in a clear_upon_failure() environment
npiganeau Oct 21, 2015
b64e75d
Update mailing list address
guewen Oct 30, 2015
1b2921b
Update mailing list address
guewen Oct 30, 2015
4ae44d6
[8.0][FIX] when a job fails, inactive users are added to its followers
Olivier-LAURENT Oct 30, 2015
dc92a27
Context manager to acquire Postgres advisory locks
guewen Nov 2, 2015
44aae45
Rename try_advisory_lock to advisory_lock_or_retry
guewen Nov 3, 2015
0d7f553
Merge pull request #135 from guewen/8.0-ml-url
guewen Nov 4, 2015
47da5d6
Merge pull request #131 from npiganeau/8.0-npiganeau-patch-1
guewen Nov 6, 2015
0fa413e
OCA Transbot updated translations from Transifex
oca-transbot Nov 8, 2015
394e033
Update index.rst
maxime-c2c Nov 16, 2015
8f1a5fa
Update index.rst
maxime-c2c Nov 16, 2015
b9e138d
Set job back to 'pending' in case of exception
mdietrichc2c Nov 18, 2015
36b42ed
Fix bug introduced in c97ebbd in jobrunner
guewen Nov 27, 2015
c184789
Fix the fix c3fefd2 :-(
guewen Dec 3, 2015
2f63152
[FIX] correctly obtain the list of database with odoo is started with…
sbidoul Dec 27, 2015
0718a9f
[FIX] ignore dbfilter containing %d or %h, fixes #58
sbidoul Dec 27, 2015
7401b70
Manage non-ascii PG errors
npiganeau Dec 28, 2015
ea95ad0
Removed trailing whitespace
npiganeau Dec 28, 2015
db13ca4
Merge pull request #166 from acsone/8.0-fix-dbfilter-sbi
guewen Jan 4, 2016
b0757d2
[FIX] ignore dbfilter, fixes #58
sbidoul Jan 4, 2016
4290cfc
Use tools.ustr() instead of unicode()
npiganeau Jan 4, 2016
c680f3f
OCA Transbot updated translations from Transifex
oca-transbot Jan 16, 2016
594c491
Merge pull request #167 from npiganeau/patch-1
guewen Jan 28, 2016
d23f406
Prevent to unpickle globals which are not jobs
guewen Feb 8, 2016
828a3df
Fix too long line
guewen Feb 22, 2016
918b634
Release 8.0.3.3.0
guewen Feb 29, 2016
552f5ce
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
333559e
Update mailing list address
guewen Oct 30, 2015
55f1480
Update index.rst
maxime-c2c Nov 16, 2015
6166f0b
[FIX] ignore dbfilter, fixes #58
sbidoul Jan 4, 2016
ed67037
[MIG] Make module installable
lmignon Feb 15, 2016
367c627
[MIG] Use python standard lib unittest in place of unittest2
lmignon Feb 15, 2016
bfdc7b7
[MIG] email followers are instance of model 'mail.followers'
lmignon Feb 15, 2016
aace3d5
[MIG] value returned by _company_default_get is a BrowseRecord
lmignon Feb 15, 2016
3f041c5
[DEL] Remove the old connector worker
lmignon Feb 15, 2016
fd3ec74
[PEP8]
lmignon Feb 15, 2016
859585a
[FIX] In the last release of Odoo related partner created from an ina…
lmignon Feb 15, 2016
37206d4
[FIX] The first version is 9.0.1.0.0
lmignon Feb 15, 2016
837004c
[FIX] fix path of odoo for doc build
lmignon Feb 18, 2016
d09742e
[DEL] Remove deprecated APIs
lmignon Feb 29, 2016
9cb0f35
Merge remote-tracking branch 'origin/8.0-no-dbfilter-sbi' into 9.0-fr…
lmignon Feb 29, 2016
159a844
Merge pull request #169 from acsone/9.0-from-8.0
sbidoul Mar 2, 2016
4385e1c
remove remnants of workers
sbidoul Mar 3, 2016
e03d0a3
make connector installable
sbidoul Mar 3, 2016
b5ad17d
enable the jobrunner by default
sbidoul Mar 3, 2016
37ea38b
bump version
sbidoul Mar 3, 2016
5266c25
remove unused import
sbidoul Mar 3, 2016
bf1c6d0
update changelog
sbidoul Mar 3, 2016
9900982
adapt to upstream api change to obtain db connection
sbidoul Mar 3, 2016
590b242
Bump version number
sbidoul Mar 3, 2016
f61f241
Update changelog for 9.0.1.0.2
guewen Mar 3, 2016
95936df
OCA Transbot updated translations from Transifex
oca-transbot Mar 5, 2016
401d134
OCA Transbot updated translations from Transifex
oca-transbot Mar 19, 2016
63e4f30
OCA Transbot updated translations from Transifex
oca-transbot Apr 2, 2016
4be5b33
OCA Transbot updated translations from Transifex
oca-transbot Apr 23, 2016
08bf44f
Move connector settings menu to technical
lasley Apr 29, 2016
79c73ec
Fix backend_to_m2o to extract id of the binding
guewen Dec 1, 2015
9078c2d
[DOC] fix highlight of license
yvaucher Jun 29, 2016
51025a3
OCA Transbot updated translations from Transifex
oca-transbot Aug 13, 2016
a742d30
Add job_uuid in context
YannickB Mar 2, 2016
0360280
Added test for job uuid in session context.
nicolas-petit Mar 11, 2016
dfb47fd
Removing log traces.
nicolas-petit Mar 11, 2016
6e6c30b
Merge pull request #201 from nicolas-petit/9.0
lasley Aug 15, 2016
b83a76e
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
702b076
OCA Transbot updated translations from Transifex
oca-transbot Aug 20, 2016
76452ae
[FIX] error handling bug
sbidoul Aug 20, 2016
d7d0ee4
[DOC] remove mention of v9 crowdfunding
sbidoul Aug 20, 2016
8407570
[REF] remove old code that was there for backward compatibility
sbidoul Aug 20, 2016
c02db07
[ADD] first implementation of channel delay
sbidoul Aug 20, 2016
de8b7a8
[IMP] to be consistent, use the same 'now' concept everywhere
sbidoul Aug 20, 2016
78283d6
[IMP] more precise wakeup at the end of delays between jobs
sbidoul Aug 22, 2016
34f4469
rename delay key as throttle
sbidoul Aug 23, 2016
a6969d3
Merge pull request #205 from acsone/9.0-channel-delay-sbi
guewen Aug 24, 2016
30b450b
Fix wrong recordset returned when no binding found
guewen Sep 6, 2016
415c05e
Merge pull request #194 from guewen/9.0-fix-backend_to_m2o-binder
lasley Sep 8, 2016
95862d2
[FIX] connector: Zero value assertion
lasley Sep 14, 2016
5f69999
Remove cancellation of jobs and their active flag
guewen May 24, 2016
816df26
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
1245369
Merge pull request #198 from guewen/remove-job-active
lasley Sep 27, 2016
81505cf
Set addons uninstallable
guewen Oct 3, 2016
21dd4bf
Make the connector addon installable
guewen Oct 3, 2016
8d5d37c
Replace 'select=True' by 'index=True'
guewen Oct 3, 2016
dcff696
Rename openerp to odoo in Python files
guewen Oct 3, 2016
a80d8d9
Rename xml files with odoo instead of openerp
guewen Oct 3, 2016
5597553
Rename openerp to odoo in docs
guewen Oct 3, 2016
7b1b69a
Replace monkey-patch by a proper inherit
guewen Oct 3, 2016
5cf8691
Remove usage of @api.one
guewen Oct 3, 2016
fe01390
Upgrade version number
guewen Oct 4, 2016
4ceb098
Replace ConnectorSession by odoo.Environment
guewen Oct 4, 2016
6f30c54
Merge JobStorage into Job
guewen Oct 4, 2016
50c13c3
Extract the queue_job from connector
guewen Oct 4, 2016
85301ce
Remove ConnectorSession
guewen Oct 4, 2016
0ce019b
Implement DelayableRecordset
guewen Oct 6, 2016
6c1e44b
Rename misnamed file
guewen Oct 7, 2016
d3b5946
Fix tests on related actions
guewen Oct 7, 2016
0f5ec1f
Encode/Decode recordsets to JSON in job arguments
guewen Oct 7, 2016
df6066c
Rework related actions, now methods of Models
guewen Oct 7, 2016
a7f796d
Fix pylint warnings
guewen Oct 7, 2016
31e6dd8
Use a discriminant field type for JobSerialized
guewen Nov 2, 2016
8277fd7
Extract queue_job from OCA/connector
guewen Nov 2, 2016
1a6460c
Set base repository files
guewen Nov 2, 2016
919ebe7
pep8 error
guewen Nov 2, 2016
c8bba2f
Add queue_job's readme
guewen Nov 2, 2016
1f46e4b
Use short copyrights
guewen Nov 2, 2016
502ceb8
[ADD] Add setup.py
adrienpeiffer Nov 7, 2016
3e21e6d
Remove the application flag
guewen Nov 9, 2016
a7ea47e
[FIX] Import jobrunner
adrienpeiffer Nov 21, 2016
87959bd
[FIX] Use env
adrienpeiffer Nov 21, 2016
70c2713
[FIX] Add the possibility to store a job with a new cursor.
adrienpeiffer Nov 21, 2016
bde992a
[FIX] im_class seems not accessible
adrienpeiffer Nov 22, 2016
35bb9c8
[FIX] __inner__ seems not accessible
adrienpeiffer Nov 22, 2016
46c77c1
[FIX] At this step, the class isn't instanciated
adrienpeiffer Nov 22, 2016
f6f0316
Merge pull request #1 from acsone/10-queue-job-setup-ape
guewen Nov 29, 2016
84e4361
Revert "[FIX] Add the possibility to store a job with a new cursor."
adrienpeiffer Dec 2, 2016
3768ccb
[IMP] Improve the way to store job after exception
adrienpeiffer Dec 2, 2016
8821cb6
Merge pull request #2 from acsone/10.0-queue-job-ape
guewen Dec 2, 2016
c43293a
fix pep8
guewen Dec 5, 2016
48a6630
[FIX] Give the db name to the request's session
adrienpeiffer Dec 7, 2016
17941e0
Make tests pass
guewen Dec 29, 2016
43bb875
Fix implementation of related actions
guewen Dec 29, 2016
fb45ac3
Correct ACSONE SA/NV wording
guewen Dec 30, 2016
efe51bf
Simplify usage of Environment with new cr
guewen Dec 30, 2016
2303d31
Move tests using queue_job.testing_method in test_queue_job
guewen Dec 30, 2016
e5dfe4f
Merge pull request #3 from acsone/10.0-queue-job-ape
guewen Dec 31, 2016
efddad9
Fix mutability of job arguments
guewen Jan 2, 2017
3ee43e4
Complete OCA runbot url
guewen Jan 2, 2017
372c1cf
Allow configuring runner from config file
leorochael Jan 2, 2017
25315f0
Whitespace handling on channel configuration
leorochael Jan 2, 2017
25bc846
Remove all references to CONNECTOR
leorochael Jan 3, 2017
e771761
Merge pull request #5 from leorochael/10.0-add-queue_job-config-file
guewen Jan 4, 2017
dc667ff
[IMP] sequential channels from 9.0
sbidoul Jan 2, 2017
1a60294
[FIX] pep8 plus trivial doctest fix
sbidoul Jan 6, 2017
b47c9a6
Merge pull request #6 from acsone/10.0-seq-channels-sbi
guewen Jan 6, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,8 @@
languages:
JavaScript: true
Python: true
exclude_paths:
- "__unported__/*"
- "*/__openerp__.py" # because this is fed to eval
- "*/__manifest__.py"
- "*/migrations/*" # without OpenUpgrade, repetitions can be necessary
59 changes: 59 additions & 0 deletions .gitignore
@@ -0,0 +1,59 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo

# Pycharm
.idea

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Sphinx documentation
docs/_build/

# Backup files
*~
*.swp

# OSX Files
*.DS_Store
72 changes: 72 additions & 0 deletions .travis.yml
@@ -0,0 +1,72 @@
language: python
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip

python:
- "2.7"

addons:
apt:
# only add the two lines below if you need wkhtmltopdf for your tests
# sources:
# - pov-wkhtmltopdf
# Search your sources alias here:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- python-simplejson
- python-serial
- python-yaml
# Search your packages here:
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
# - wkhtmltopdf # only add if needed and check the before_install section below

# set up an X server to run wkhtmltopdf.
#before_install:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"

env:
global:
- VERSION="10.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- TRANSIFEX_USER='transbot@odoo-community.org'
# This line contains the encrypted transifex password
# To encrypt transifex password, install travis ruby utils with:
# $ gem install travis --user-install
# and use:
# $ travis encrypt TRANSIFEX_PASSWORD=your-password -r owner/project
# Secure list for current OCA projects is in https://github.com/OCA/maintainer-quality-tools/issues/194
# - secure: PjP88tPSwimBv4tsgn3UcQAD1heK/wcuSaSfhi2xUt/jSrOaTmWzjaW2gH/eKM1ilxPXwlPGyAIShJ2JJdBiA97hQufOeiqxdkWDctnNVVEDx2Tk0BiG3PPYyhXPgUZ+FNOnjZFF3pNWvzXTQaB0Nvz8plqp93Ov/DEyhrCxHDs=
# Use the following lines if you need to manually change the transifex project slug or/and the transifex organization.
# The default project slug is owner-repo_name-version (with dash in the version string).
# The default organization is the owner of the repo.
# The default fill up resources (TM) is True.
# The default team is 23907. https://www.transifex.com/organization/oca/team/23907/
# - TRANSIFEX_PROJECT_SLUG=
# - TRANSIFEX_ORGANIZATION=
# - TRANSIFEX_FILL_UP_RESOURCES=
# - TRANSIFEX_TEAM=

matrix:
- LINT_CHECK="1"
- TRANSIFEX="0" # need a user
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB"

virtualenv:
system_site_packages: true

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

script:
- travis_run_tests

after_success:
- travis_after_tests_success
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,7 @@
# OCA Guidelines

Please follow the official guide from the [OCA Guidelines page](https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md).

## Project Specific Guidelines

This project does not have specific coding guidelines.