Explicacin de los pasos a seguir para poner en marcha un entorno de trabajo de Tryton.
Presentacin realizada en las I Jornadas Tryton de 2016 en Barcelona.
1 of 13
Download to read offline
More Related Content
Invoke y como poner en marcha un entorno de trabajo
6. Tareas de mdulos
? config - Clone/Update config repo
? clone - Clone trytond modules
? increase_module_version - Increase version of module
? branches - Show info module branches
$ pip install hg+https://bitbucket.org/trytonspain/trytontasks-modules
trytontasks-modules
7. Tareas para GAL (data demo). Requiere proteus.
? create - Create new Gal Database (PostgreSQL)
? install - Install modules and create data
? dump - Dump PSQL Database to SQL file
? restore - Create PSQL Database and restore SQL file
? Dropdb - Drop PSQL Database
$ pip install hg+https://bitbucket.org/trytonspain/trytontasks-gal
trytontasks-gal
8. Tareas para SAO
? install - Install SAO
? grunt C Grunt SAO
? open C Open SAO in browser
$ pip install hg+https://bitbucket.org/trytonspain/trytontasks-sao
trytontasks-sao
9. Tareas para GAL (data demo). Requiere proteus.
? install - Install User DOC
? make - Make User DOC
? build - Build User DOC (html, singlehtml...)
? open - Open User DOC in browser
$ pip install hg+https://bitbucket.org/trytonspain/trytontasks-userdoc
Proyecto de documentacin:
https://bitbucket.org/trytonspain/trytond-doc
trytontasks-userdoc
10. from invoke import Collection
# import here your tryton tasks projects
import trytontasks_modules
import trytontasks_sao
import trytontasks_userdoc
ns = Collection()
ns.add_collection(Collection.from_module(trytontasks_modules, name='modules'))
ns.add_collection(Collection.from_module(trytontasks_sao, name='sao'))
ns.add_collection(Collection.from_module(trytontasks_userdoc, name='doc'))
Tasks
11. $ invoke modules.config -r https://bitbucket.org/nantic/tryton-config
$ invoke modules.clone Cconfig=base.cfg # importante! Crea los directorios base
$ invoke modules.clone --config=trytonspain.cfg
$ invoke modules.clone
$ invoke modules.branches
Crear un entorno