Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Automated project build  (Read 6301 times)
Hans-Joachim K.
Posts: 7


« on: September 27, 2023, 01:12:25 pm »

Hello,
I am planning to have an automated build/test pipeline set up for our Genero BDL projects.
Our Genero Studio setup is using Debian Linux as backend server.

How can I trigger a project clean/build/rebuild via command line on the Linux side?
The idea is to combine this with svn so that after each commit, and automated build and deploy/test cycle is started.

Unfortunately I was not able to find any hint in the doc until now, so thanks for your help.

Best Regards,
Hajo
Reuben B.
Four Js
Posts: 1049


« Reply #1 on: September 27, 2023, 11:34:04 pm »

Have a look at "gsmake"

http://4js.com/online_documentation/fjs-gst-manual-html/#gst-topics/c_gst_projectmgr_gsmake.html

Reuben

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Hans-Joachim K.
Posts: 7


« Reply #2 on: September 28, 2023, 11:01:51 am »

Hi Reuben,

thank you very much, that was exactly what I was looking for.

I had found fglcomp and fgllink in the BDL manual, but missed to check the Studio doc.

Best Regards,
Hajo
Thomas V.
Posts: 1


« Reply #3 on: March 07, 2024, 10:17:19 am »

Hello,
I am planning to have an automated build/test pipeline set up for our Genero BDL projects soccer skills world cup.
Our Genero Studio setup is using Debian Linux as backend server.

How can I trigger a project clean/build/rebuild via command line on the Linux side?
The idea is to combine this with svn so that after each commit, and automated build and deploy/test cycle is started.

Unfortunately I was not able to find any hint in the doc until now, so thanks for your help.

Best Regards,
Hajo

Locate the post-commit hook script for your SVN repository. It's typically found in the .svn/hooks directory of your repository root.
If the file doesn't exist, create it with the following name: post-commit (without the .sh extension).
Edit the post-commit script using a text editor:
#!/bin/sh

# Specify the directory containing your Genero BDL project (adjust as needed)
PROJECT_DIR="/path/to/your/genero/project"

# Navigate to the project directory
cd "$PROJECT_DIR"

# Run your specific Genero BDL build/test commands
# Replace this example with your actual commands
make clean all test

# (Optional) Send notifications or logs (e.g., using email or logging tools)
# ...

exit 0
Make the script executable:

chmod +x .svn/hooks/post-commit

Hans-Joachim K.
Posts: 7


« Reply #4 on: March 07, 2024, 10:38:30 am »

Hi Thomas,

perfect, thank you very much for your hint.

This matches nicely, we are also still using SVN for our projects.

Best Regards,
Hajo
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines