I'm an MPS newbie. We're trying to use MPS in our internal process to define a language that will help us to define tests in a simple way and generate boilerplate Java code out of those definitions. It works great in the IDE (define language, editors, write models, rebuild all, generate code) but we would like to have build and generation steps executed also as part of the CI/CD pipeline. One sentence summary would be that we want to define the language, models in IDE, commit it to the repository, and during the build pipeline rebuild language, generate java code from models, and use generated code as part of our product build.
The "extra" steps in the regular CI/CD pipeline would be:
1) check out a project with "our" language and models defined in this language,
2) rebuild the language,
3) generate java code based on the models
4) use generated classes as part of the "regular" product build.
I cannot find a clear answer in the documentation or in the existing posts on how to achieve 2) and 3). Can you please advise on it or point to the proper documentation and examples? What is required to be installed to have it run on a server - "headless"?
The version is MPS 2021.3
Thanks a lot in advance for your help.