Skip to content

Commit

Permalink
Update helpers.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Yelizariev committed Nov 7, 2019
1 parent f605fa3 commit eea02d7
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions docs/migration/helpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,35 @@ Switching off unported modules
git commit -m ":sos::one::three: mark unported modules as non-installable"
# (make "git push" and pull request at github)
Updating odoo versions in docs
Updating odoo version in files
==============================

Once per repository:

.. code-block:: sh
# update CI stuff
sed -i '/Build Status/s/12.0/13.0/g' README.md
sed -i '/VERSION=/s/12.0/13.0/' .travis.yml
git commit README.md .travis.yml -m ":shield::one::three: bump versions"
General helpers (could be executed in new branch as well as on porting modules):

.. code-block:: sh
# bump versions in urls in docs (excluding "Tested on Odoo 12.0 SHA" expression)
find . -type f -name *.rst -or -name index.html -or -name *.md | xargs sed -i '/\(Tested on \| 12.0\)/!s/12.0/13.0/g'
# update "tested on Odoo 12.0 community / enterprise" -- IT-Projects specific
find . -type f -name index.html | xargs sed -i 's;<br/>12.0;<br/>13.0;g'
# update CI stuff
sed -i '/Build Status/s/12.0/13.0/g' README.md
sed -i '/VERSION=/s/12.0/13.0/' .travis.yml
git commit *.rst *.html *.md -m ":book::one::three: bump versions in docs"
Only on porting modules:

.. code-block:: sh
# update version in manifest
find . -type f -name __manifest__.py | xargs sed -i 's;12.0;13.0;g'
Reviewing odoo updates
======================

Expand Down

0 comments on commit eea02d7

Please sign in to comment.