forked from OCA/connector-magento
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OCA#31 from guewen/profiles-and-travis
Travis and profiles configuration
- Loading branch information
Showing
56 changed files
with
736 additions
and
278 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,48 @@ | ||
language: python | ||
|
||
python: | ||
- "2.7" | ||
|
||
# specific_fct and stockit_synchro fail because they install product_multi_ean | ||
# and point_of_sale and point_of_sale can no longer create products with | ||
# product_multi_ean... | ||
# Thus they are not tested until a solution is found | ||
env: | ||
- | ||
- RUNTESTS=1 EXCLUDE=last_sale_price,specific_fct,stockit_synchro | ||
- RUNTESTS=1 INCLUDE=last_sale_price | ||
|
||
cache: | ||
directories: | ||
- ${HOME}/.eggs-cache | ||
|
||
virtualenv: | ||
system_site_packages: true | ||
|
||
before_install: | ||
- echo -e "Host bazaar.launchpad.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- echo -e "Host bazaar.camptocamp.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- mkdir ~/.bazaar | ||
- echo -e "[DEFAULT]\nlaunchpad_username = camptocamp-business-robot\n" > ~/.bazaar/bazaar.conf | ||
- echo -e "[Launchpad]\nhost = .launchpad.net\nuser = camptocamp-business-robot\n" > ~/.bazaar/authentication.conf | ||
- echo -e "[c2cbazaar]\nhost = bazaar.camptocamp.net\nuser = openerp\n" >> ~/.bazaar/authentication.conf | ||
- git config --global user.name "TravisCI" | ||
- git config --global user.email "travis@camptocamp.com" | ||
- pip install -q flake8 flake8-debugger flake8-print coverage | ||
- sudo apt-get -q -y install expect-dev # provides unbuffer utility | ||
- mkdir ${HOME}/.buildout | ||
- echo -e "[buildout]\neggs-directory = "${HOME}"/.eggs-cache\n" > ~/.buildout/default.cfg | ||
|
||
install: | ||
- echo -e "[buildout]\nextends = profiles/travis.cfg\n" > ${TRAVIS_BUILD_DIR}/buildout.cfg | ||
- ${TRAVIS_BUILD_DIR}/bootstrap.sh | ||
- ${TRAVIS_BUILD_DIR}/bin/buildout | ||
|
||
before_script: | ||
- export DB_NAME=$(grep db_name ${TRAVIS_BUILD_DIR}/etc/openerp.cfg | cut -d ' ' -f 3) | ||
- export DB_USER=$(grep db_user ${TRAVIS_BUILD_DIR}/etc/openerp.cfg | cut -d ' ' -f 3) | ||
- export DB_PASS=$(grep db_password ${TRAVIS_BUILD_DIR}/etc/openerp.cfg | cut -d ' ' -f 3) | ||
|
||
script: | ||
- if [ -z "$RUNTESTS" ] ; then flake8 ${TRAVIS_BUILD_DIR}/specific-parts/specific-addons --exclude=__init__.py; fi | ||
- if [ -n "$RUNTESTS" ] ; then ./test_server; fi |
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
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
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,21 @@ | ||
[buildout] | ||
extends = ../common.cfg | ||
|
||
[erp_global] | ||
instance = travis | ||
|
||
[openerp] | ||
options.log_level = test | ||
options.running_env = travis | ||
options.xmlrpc_port = 8069 | ||
options.workers = 0 | ||
options.without_demo = False | ||
|
||
options.admin_login_password = admin | ||
|
||
with_devtools = true | ||
test_script_name = runtests | ||
openerp_command_name = oe | ||
|
||
[auto_run] | ||
start_on_boot = no |
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
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
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 |
---|---|---|
|
@@ -43,4 +43,4 @@ | |
'installable': True, | ||
'auto_install': False, | ||
'license': 'AGPL-3', | ||
} | ||
} |
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
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
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 |
---|---|---|
|
@@ -59,4 +59,4 @@ | |
], | ||
'data': [], | ||
'installable': True | ||
} | ||
} |
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 |
---|---|---|
|
@@ -141,7 +141,6 @@ def _line(self): | |
return line | ||
|
||
|
||
|
||
class ChronopostFileGenerator(CarrierFileGenerator): | ||
|
||
@classmethod | ||
|
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
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
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
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
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
Empty file.
6 changes: 6 additions & 0 deletions
6
specific-parts/specific-addons/server_environment_files/travis/company.conf
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,6 @@ | ||
[res_company.1] | ||
sftp_invoice_host = | ||
sftp_invoice_port = | ||
sftp_invoice_user = | ||
sftp_invoice_password = | ||
sftp_invoice_path = |
7 changes: 7 additions & 0 deletions
7
specific-parts/specific-addons/server_environment_files/travis/magento.conf
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,7 @@ | ||
[magento_backend.debonix] | ||
location = | ||
username = | ||
password = | ||
|
||
[sale_shop.Main Website Store] | ||
allow_magento_notification = 0 |
16 changes: 16 additions & 0 deletions
16
specific-parts/specific-addons/server_environment_files/travis/mail.conf
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,16 @@ | ||
[outgoing_mail.smtp_debonix] | ||
smtp_host = | ||
smtp_port = 465 | ||
smtp_user = | ||
smtp_pass = | ||
smtp_encryption = none | ||
|
||
[incoming_mail.imap_debonix] | ||
server = | ||
port = 993 | ||
type = imap | ||
is_ssl = 1 | ||
attach = 0 | ||
original = 0 | ||
user = | ||
password = |
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
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
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
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
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
Oops, something went wrong.