forked from ingadhoc/odoo-argentina
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.travis.yml
102 lines (93 loc) · 5.53 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
language: python
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip
python:
- "3.5"
addons:
postgresql: "9.6"
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
# for aeroo
- cups
- libcups2-dev
# FE
- python-dev
- swig
- libffi-dev
- libssl-dev
- python-m2crypto
- python-httplib2
# 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=:912.0"
# - "sh -e /etc/init.d/xvfb start"
env:
global:
- VERSION="12.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- TRANSIFEX_USER='jjscarafia'
# 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: Kys/o1svHJON9p6Vwv4qVSAvR/e6KGp4qKeDjWNcVeQoCfs0O35aiouLWUUiuj+JSrACL6ngha3QbeuajhYr6cYPur4NjIbCq7ePcmbEu45OcJz3l/7EiUFit8XwlRmT1uGtgknsvbn37vlF0IC28gK/1D/06CLJnxAXBOjkEd7sNmAQNAYVHQREsQsK1Pw39APAzUAtB5K5fNU3MUhQ0dCWWZ+nQeghbVM0kzf1k1iJkRDf3WDWZRRDCQdS93bMkXsw0ojkW1X5sSAqfxu89uDSyMNgMVmPsLsavatFrlUMEMZXkSlevGvNUSgoClLQMeIzbivhDME9Nv6hKcqYU8TKIYF7URtSdWwOA1FxXnrOqUjkAqvajS2P2byLYHMoRC31SH5Mh3s2A04qh+sLEf406fB8e8//7leN4l9YL2S3F6m++ZUHgN7YHXD0jhspiuC9FtnMDULUIDXGM4vaMpkZY5lhROOPXecE9FAIl9rc8s3BqlV2GMP4rrBxqo8l5SoSt4I5TOacI3niHBUHU47jhRK8NsGI/Z9ybElNeVmBI9QzZXHhciB31IPC/nRL9MgBFN1/JsHH2FXUv9OnOi8VxU5AqsCCeCG+dSFGeKZfRPZiqIHZNavL7DLitrYmN3JsizKTPGsA1CQ1788Q8oTx8C+Fn4zk+hQ+vCI+DKo=
# 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_FILL_UP_RESOURCES=
- TRANSIFEX_ORGANIZATION='adhoc'
- TRANSIFEX_TEAM='46451'
matrix:
- LINT_CHECK="1"
- TRANSIFEX="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
# 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="OCA/OCB" UNIT_TEST="1"
# - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1"
install:
- git clone --depth=1 https://github.com/ingadhoc/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
# if we are on TESTS then we copy this modules because if not account is pre-nstalled an it launches l10n_ar_chart installation, and then later on l10n_ar_chart re-install we have errors (native odoo errors)
# running test with account already installed (i also happends with odoo default modules)
# - if [ "${TESTS}" == "1" ]; then mv ~/odoo-12.0/addons/account ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/odoo-12.0/addons/account_cancel ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/odoo-12.0/addons/account_invoicing ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-financial-tools/account_document ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-financial-tools/account_debt_management ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-financial-tools/account_financial_amount ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-payment/account_check ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-payment/account_withholding ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-payment/account_withholding_automatic ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-payment/account_payment_group ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-payment/account_payment_fix ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/ingadhoc-account-financial-tools/account_fix ~/build/ingadhoc/odoo-argentina; fi
# - if [ "${TESTS}" == "1" ]; then mv ~/dependencies/account-financial-tools/currency_rate_update ~/build/ingadhoc/odoo-argentina; fi
script:
- travis_run_tests
after_success:
# enable aeroo docs conversion
- if [[ "${OCA_RUNBOT}" == "1" ]]; then psql openerp_test -c "INSERT INTO ir_config_parameter (key, value) VALUES ('aeroo.docs_host', 'runbot.adhoc.com.ar'), ('aeroo.docs_port', '8989'), ('aeroo.docs_enabled', 'True')"; fi
- travis_after_tests_success