Page 1 of 1

Compiling LANSA Components outside the VL IDE

Posted: Thu Mar 09, 2017 7:35 am
by alih
Hi,

Assuming a LANSA environment installed on Windows and is using Git version control. My question is:

Using the Windows command prompt, is there a way to extract LANSA objects "code" from the YAML files (after a git pull), then build/compile that into DLL's/JS files...etc. to generate -from scratch- a complete solution that is ready to run?

The goal is to implement continuous deployment and continuous integration by scripting the LANSA build/compile process.

Thanks

Re: Compiling LANSA Components outside the VL IDE

Posted: Thu Mar 09, 2017 10:36 am
by Stewart Marshall
Hi Ali

Sorry to say, but the short answer today is that this still requires manual intervention.



Regards

Re: Compiling LANSA Components outside the VL IDE

Posted: Fri Mar 10, 2017 1:14 am
by alih
Thanks Stewart.

Re: Compiling LANSA Components outside the VL IDE

Posted: Tue Aug 22, 2017 4:42 pm
by dominique
Hi Stewart,
We have the same goal as Ali.
You said "in short". Is there an extensive answer?
What alternatives do you suggest to implement a continuous integration/continuous deployment process, e.g. with Bamboo?

Re: Compiling LANSA Components outside the VL IDE

Posted: Thu Aug 24, 2017 3:30 pm
by robe070
The long answer is that LANSA is working towards implementing features which will allow it to be be incorporated into a CI/CD pipeline.

Thats short to say, but longish on implementation.

Command line builds will be included. Its only a question of when.

The first feature off the block is 1-Click Deployment. This will be released in an EPC for V14 SP1. It will only be available on request once a beta agreement has been entered into. To obtain the EPC, please keep an eye on our released EPCs on this page http://www.lansa.com/support/notes/epc/vl.htm#V14. Its currently numbered EPC 141060, and that may change. When its posted there, contact your local LANSA office to enter into the beta program.

From within the IDE, a release manager can click on a button which will deploy all the LANSA executable artefacts to a test system, including transferring test data across and applying table definition updates. At first it will be integrated into the IDE but it has been written to be easily run from the command line. It uses a git repository (not the same as the source code repository) to distribute the executable artefacts via a GitHub repo (public or private). It could be customised quite easily to use any git upstream repository on which a web hook or trigger may be configured. The test system runs a deployment hub which is notified by the trigger and pulls the changes down into the test system. The deployment of a single web page change without any tables takes in the order of 15 seconds from clicking the button to the new web page being available on the test system.

If you take part in the beta program, you can expect a fast response to issues raised and good ideas will be implemented as quickly as possible.

Preview documentation of the feature may be found here: http://docs.lansa.com/14/en/VLDToolDevO ... s_0010.htm

The intention is to GA the 1-Click Deployment feature in V14 SP2.

Re: Compiling LANSA Components outside the VL IDE

Posted: Thu Aug 24, 2017 4:51 pm
by HMJust
CI/CD sounds very promising.

I have a question, since I am struggling a bit with the terminology. This is partly because I am working on a system that by now is quite old and we switch between a v.12 and a v.14 environment.

So when the doc says "Only the very latest Web technology is supported. WAMs and older technologies are not supported." could you expand on that, or rather, which is the "very latest Web technology". I want to make sure that any new projects here follow that path.

Re: Compiling LANSA Components outside the VL IDE

Posted: Fri Aug 25, 2017 9:07 am
by robe070
In V14 we introduced Web Pages. This is the technology currently supported by 1-Click Deployment. We may expand it to support WAMs in the future, but nothing earlier than that.

Re: Compiling LANSA Components outside the VL IDE

Posted: Tue Aug 29, 2017 5:54 pm
by robe070
The One Click deployment EPC has been released. See the announcements section: viewtopic.php?f=5&t=1506

Re: Compiling LANSA Components outside the VL IDE

Posted: Tue Aug 29, 2017 5:57 pm
by robe070
Note that components may be compiled from RDMLX using the COMPILE_COMPONENT BIF. And thus you could write an RDMLX program which could be executed from the command line to compile your components.

There currently is no method of importing the YAML into the LANSA repository. That would need to be a manual operation until that feature is released.

Re: Compiling LANSA Components outside the VL IDE

Posted: Tue Aug 29, 2017 8:35 pm
by dominique
Sounds good. Thanks robe and Stewart