Closed rcherrueau closed 6 years ago
I added a commit to prepare the next version of the TP. I bet for stable/rocky
and pip install "enos[openstack]==5.0.0
. And I added an Emacs function to automatically update the TP. See my commit message.
To update the TP when a new version of EnOS appears, change in the
following the values of `new-os-version' and `new-enos-install' with the
value of the next release. Then executes the code with `C-c C-c'.
See * Appendix > ** Update with a new version of EnOS
,----
| (let ((cur-os-version "stable/rocky")
| (new-os-version "stable/rocky")
| (cur-enos-install "pip install \"enos[openstack]==5.0.0\"")
| (new-enos-install "pip install \"enos[openstack]==5.0.0\""))
| (defun enos/update-tuto (cur-version new-version)
| (with-current-buffer (current-buffer)
| (goto-char (point-min))
| (while (search-forward cur-version nil t)
| (replace-match new-version))
| (save-buffer)))
| (enos/update-tuto cur-os-version new-os-version)
| (enos/update-tuto cur-enos-install new-enos-install))
`----
Tutorial is index.org. It is an org mode file written to:
ox-rst.el' file from https://github.com/msnoigrs/ox-rst into emacs. Then do,
C-c C-e r r' orM-x org-rst-export-to-rst'. The rst file will be available under
enos/docs/tutorial/index.rst'. Caution: the remove of line references in source blocks (i.e.,-r') doesn't work with
ox-rst.el'. We have to remove them manually in theindex.rst'. The following emacs-lisp command does the job. Executes it with
C-c C-c'.C-c C-v t' or
M-x org-babel-tangle'. The bash script and configuration files will be available under `enos/tests/functionnal/tests/tutorial/'.To export, clean line refs, and tangle code execute the following elisp code.
See *Appendix > ** How to export this tutorial