-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
151 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
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="8.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="1" | ||
- TESTS="1" ODOO_REPO="odoo/odoo" | ||
- TESTS="1" ODOO_REPO="OCA/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" | ||
|
||
virtualenv: | ||
system_site_packages: true | ||
|
||
# Enable this if your repository needs sass command (needed for website related repos) | ||
#before_install: | ||
# - rvm install ruby --latest | ||
# - gem install bootstrap-sass | ||
# - gem install compass --pre | ||
|
||
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 |