Skip to content

Commit

Permalink
INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
yvaucher committed Sep 28, 2018
0 parents commit d5c711c
Show file tree
Hide file tree
Showing 135 changed files with 6,310 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .cookiecutter.context.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
customer_name: geo_11
odoo_version: '11.0'
customer_shortname: geo_11
repo_name: geo_11
project_id: '0000'
project_name: geo_11_odoo
odoo_company_name: geo_11
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HISTORY.rst merge=union
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# Translations
*.mo

# backup files
*.~*

# project specific
rancher/*/rancher.env

# local dev requirements
odoo/dev_requirements.txt

# local dev composition
docker-compose.override.yml
146 changes: 146 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
[submodule "odoo/src"]
path = odoo/src
url = [email protected]:OCA/OCB.git
branch = 11.0

; Camptocamp
; [submodule "odoo/external-src/odoo-dj"]
; path = odoo/external-src/odoo-dj
; url = [email protected]:camptocamp/odoo-dj.git
; branch = 11.0
;[submodule "odoo/external-src/odoo-cloud-platform"]
; path = odoo/external-src/odoo-cloud-platform
; url = [email protected]:camptocamp/odoo-cloud-platform.git
; branch = 11.0

; Enterprise
;[submodule "odoo/external-src/enterprise"]
; path = odoo/external-src/enterprise
; url = [email protected]:odoo/enterprise.git
; branch = 11.0

; OCA
[submodule "odoo/external-src/server-tools"]
path = odoo/external-src/server-tools
url = [email protected]:OCA/server-tools.git
branch = 11.0
[submodule "odoo/external-src/web"]
path = odoo/external-src/web
url = [email protected]:OCA/web.git
branch = 11.0
[submodule "odoo/external-src/geospatial"]
path = odoo/external-src/geospatial
url = [email protected]:OCA/geospatial.git
branch = 11.0
;[submodule "odoo/external-src/account-closing"]
; path = odoo/external-src/account-closing
; url = [email protected]:OCA/account-closing.git
; branch = 11.0
;[submodule "odoo/external-src/account-analytic"]
; path = odoo/external-src/account-analytic
; url = [email protected]:OCA/account-analytic.git
; branch = 11.0
;[submodule "odoo/external-src/account-financial-reporting"]
; path = odoo/external-src/account-financial-reporting
; url = [email protected]:OCA/account-financial-reporting.git
; branch = 11.0
;[submodule "odoo/external-src/account-financial-tools"]
; path = odoo/external-src/account-financial-tools
; url = [email protected]:OCA/account-financial-tools.git
; branch = 11.0
;[submodule "odoo/external-src/account-invoicing"]
; path = odoo/external-src/account-invoicing
; url = [email protected]:OCA/account-invoicing.git
; branch = 11.0
;[submodule "odoo/external-src/bank-payment"]
; path = odoo/external-src/bank-payment
; url = [email protected]:OCA/bank-payment.git
; branch = 11.0
;[submodule "odoo/external-src/bank-statement-reconcile"]
; path = odoo/external-src/bank-statement-reconcile
; url = [email protected]:OCA/bank-statement-reconcile.git
; branch = 11.0
;[submodule "odoo/external-src/carrier-delivery"]
; path = odoo/external-src/carrier-delivery
; url = [email protected]:OCA/carrier-delivery.git
; branch = 11.0
;[submodule "odoo/external-src/intrastat"]
; path = odoo/external-src/intrastat
; url = [email protected]:OCA/intrastat.git
; branch = 11.0
;[submodule "odoo/external-src/partner-contact"]
; path = odoo/external-src/partner-contact
; url = [email protected]:OCA/partner-contact.git
; branch = 11.0
;[submodule "odoo/external-src/pos"]
; path = odoo/external-src/pos
; url = [email protected]:OCA/pos.git
; branch = 11.0
;[submodule "odoo/external-src/product-attribute"]
; path = odoo/external-src/product-attribute
; url = [email protected]:OCA/product-attribute.git
; branch = 11.0
;[submodule "odoo/external-src/product-variant"]
; path = odoo/external-src/product-variant
; url = [email protected]:OCA/product-variant.git
; branch = 11.0
;[submodule "odoo/external-src/purchase-workflow"]
; path = odoo/external-src/purchase-workflow
; url = [email protected]:OCA/purchase-workflow.git
; branch = 11.0
;[submodule "odoo/external-src/rma"]
; path = odoo/external-src/rma
; url = [email protected]:OCA/rma.git
; branch = 11.0
;[submodule "odoo/external-src/sale-workflow"]
; path = odoo/external-src/sale-workflow
; url = [email protected]:OCA/sale-workflow.git
; branch = 11.0
;[submodule "odoo/external-src/report-print-send"]
; path = odoo/external-src/report-print-send
; url = [email protected]:OCA/report-print-send.git
; branch = 11.0
;[submodule "odoo/external-src/reporting-engine"]
; path = odoo/external-src/reporting-engine
; url = [email protected]:OCA/reporting-engine.git
; branch = 11.0
;[submodule "odoo/external-src/stock-logistics-workflow"]
; path = odoo/external-src/stock-logistics-workflow
; url = [email protected]:OCA/stock-logistics-workflow.git
; branch = 11.0
;[submodule "odoo/external-src/stock-logistics-warehouse"]
; path = odoo/external-src/stock-logistics-warehouse
; url = [email protected]:OCA/stock-logistics-warehouse.git
; branch = 11.0

; Localizations
;[submodule "odoo/external-src/l10n-france"]
; path = odoo/external-src/l10n-france
; url = [email protected]:OCA/l10n-france.git
; branch = 11.0
;[submodule "odoo/external-src/l10n-switzerland"]
; path = odoo/external-src/l10n-switzerland
; url = [email protected]:OCA/l10n-switzerland.git
; branch = 11.0

; Connectors
;[submodule "odoo/external-src/queue"]
; path = odoo/external-src/queue
; url = [email protected]:OCA/queue
; branch = 11.0
;[submodule "odoo/external-src/connector"]
; path = odoo/external-src/connector
; url = [email protected]:OCA/connector
; branch = 11.0
;[submodule "odoo/external-src/connector-ecommerce"]
; path = odoo/external-src/connector-ecommerce
; url = [email protected]:OCA/connector-ecommerce
; branch = 11.0
;[submodule "odoo/external-src/connector-magento"]
; path = odoo/external-src/connector-magento
; url = [email protected]:OCA/connector-magento
; branch = 11.0
;[submodule "odoo/external-src/connector-prestashop"]
; path = odoo/external-src/connector-prestashop
; url = [email protected]:OCA/connector-prestashop
; branch = 11.0
25 changes: 25 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# List of files to sync
sync:
include:
- ./.cookiecutter.context.yml
- ./tasks/*
- ./docs/*
- ./travis/docker-compose.yml
- ./travis/git_submodule_update.py
- ./travis/minion-client.py
- ./travis/publish.sh
- ./odoo/before-migrate-entrypoint.d/*
- ./odoo/start-entrypoint.d/*
- ./odoo/local-src/camptocamp_tools/*
- ./odoo/local-src/camptocamp_website_tools/*
- ./cups-test-server/*
- ./Dangerfile
- ./Gemfile
- ./Gemfile.lock
exclude:
- ./docs/README.local.md
comment: |
This file has been generated with 'invoke project.sync'.
Do not modify. Any manual change will be lost.
Please propose your modification on
https://github.com/camptocamp/odoo-template instead.
86 changes: 86 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
sudo: required

services: docker

git:
# we don't want travis to pull them for the lint build,
# so we pull them manually in the tests build
submodules: false

addons:
apt:
packages:
# used for pylint
- python-lxml

cache:
directories:
- $HOME/.cachedb

env:
matrix:
- LINT_CHECK="1"
- TESTS="1"
global:
- DOCKER_COMPOSE_VERSION="1.17.1"
- TESTS="0" LINT_CHECK="0"
- ADDONS_DIR="${TRAVIS_BUILD_DIR}/odoo/local-src"
- SONGS_DIR="${TRAVIS_BUILD_DIR}/odoo/songs"
- COMPOSE_PROJECT_NAME=geo_11
- GENERATED_IMAGE="${COMPOSE_PROJECT_NAME}_odoo"
- DOCKER_HUB_REPO="camptocamp/${GENERATED_IMAGE}"
- TRAVIS_COMPOSE="travis/docker-compose.yml"
- RANCHER_MINION_SERVER="https://${COMPOSE_PROJECT_NAME}.odoo-test.camptocamp.ch"

before_install:
- git config --global user.name "TravisCI"
- git config --global user.email "[email protected]"
# Generate a md5 from submodules to identify the dump.
# We will generate a new dump each time any submodule changes
- if [ "$TESTS" == "1" ] ; then export SUBS_MD5=$(git submodule status | md5sum | cut -d ' ' -f1) ; fi
# Only create cached dump on commits on master and not on tags.
# Database dumps will land on the master's cache only.
- if [ "$TESTS" == "1" -a "$TRAVIS_PULL_REQUEST" == "false" -a -z "$TRAVIS_TAG" ] ; then export CREATE_DB_CACHE="true" ; fi
- if [ "$LINT_CHECK" == "1" ] ; then pip install --user -q flake8 pylint pylint_odoo; fi
- if [ "$LINT_CHECK" == "0" ] ; then pip install --user -q gitpython requests pyOpenSSL ndg-httpsclient pyasn1 pyyaml; fi

install:
- if [ "$TESTS" == "1" ] ; then bundle install ; fi
- if [ "$LINT_CHECK" == "0" ] ; then ./travis/git_submodule_update.py ; fi
# we always specify '-f docker-compose.yml' so 'docker-compose.override.yml'
# is not used and so the volumes are not shared with the host
- if [ "$LINT_CHECK" == "0" ] ; then docker-compose -f $TRAVIS_COMPOSE build --pull ; fi
- if [ "$TESTS" == "1" ] ; then docker-compose -f $TRAVIS_COMPOSE up -d db ; fi
- if [ "$TESTS" == "1" ] ; then docker-compose -f $TRAVIS_COMPOSE ps ; fi

# We run the tests and migration in the same build, so we can push the docker image
# after that we validated it has tests and migration passing
script:
- if [ "$TESTS" == "1" ] ; then bundle exec danger ; fi
- if [ "$LINT_CHECK" == "1" ] ; then flake8 ${ADDONS_DIR} ${SONGS_DIR} --exclude=__init__.py ; fi
- if [ "$LINT_CHECK" == "1" ] ; then pylint --rcfile=travis/pylintrc --valid_odoo_versions=11.0 ${ADDONS_DIR}/* ; fi
# run tests on an empty database, which is dropped afterwards
- if [ "$TESTS" == "1" ] ; then docker-compose -f $TRAVIS_COMPOSE run --rm -e SUBS_MD5=${SUBS_MD5} -e CREATE_DB_CACHE=${CREATE_DB_CACHE} -e DEMO=True odoo runtests ; fi
# run the migration
#
# Notes on releases:
#
# On each release both upgrade step and install from scratch are tested
# on separate builds. (even if cache exists)
#
# When creating a release a git tag will generate 2 builds on travis:
# - one for the new tag
# - a second for the commit on master.
#
# As the tag build is used to generate a new release we want to end it fast
# to ship it quickly. Thus as odoo/VERSION has changed it needs to check for
# previous tag cached database. MIG_LOAD_VERSION_CEIL is there for that.
#
# However, to ensure a build from scratch is done on each new release
# the search of a previous version dump is not active on commits on master.
# This will force a complete build when odoo/VERSION has been edited and doesn't
# match a cached database dump because such dump has not been created yet.
- if [ "$TESTS" == "1" ] ; then docker-compose -f $TRAVIS_COMPOSE run --rm -e MARABUNTA_MODE=sample -e MARABUNTA_ALLOW_SERIE=True -e CREATE_DB_CACHE=${CREATE_DB_CACHE} -e MIG_LOAD_VERSION_CEIL=${TRAVIS_TAG} odoo runmigration ; fi

after_success:
- if [ "$TESTS" == "1" ] ; then ./travis/publish.sh ; fi
Loading

0 comments on commit d5c711c

Please sign in to comment.