Build project from Gitlab CI

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
jenswet
Offline
Last seen: 2 years 5 months ago
Joined: 2018-10-16 16:15
Build project from Gitlab CI

Hello,

I am trying to get an automated CI/CD build of my DA14683 project on my gitlab server.

I can easily build my project from Ubuntu with GUI. But I would need to install all required build tools in a Docker container and generate the Makefiles for the project without any GUI interaction in a headless environment.

I could not find any information about triggering the SmartSnippets Studio build from command line. Eclipse CDT seems to support this: https://gnu-mcu-eclipse.github.io/advanced/headless-builds/ But I don't know if it works with SmartSnippets Studio.

Did you already try this before and can lead me to the right direction?

Are there any other tools which can build a project without installing the whole IDE or build generation scripts working without starting Eclipse?

Thanks and best regards

Jens

Keywords: 
Device: 
jenswet
Offline
Last seen: 2 years 5 months ago
Joined: 2018-10-16 16:15
I just tried if the general

I just tried if the general CDT headless build is working. It is. Following command works great and builds the project:

/path/to/SmartSnippetsStudio2.0.12/CDT/SmartSnippets_Studio --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /path/to/workspace/ -cleanBuild "project/configuration"

The remaining question is now: Do I need to install all tools (like Ozone, etc) and SmartSnippets or only a part in my Docker image? How can I tell the SmartSnippets installation where it should search for the tools without GUI config wizard at the first start?

Thanks a lot!

PM_Dialog
Offline
Last seen: 9 months 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi jenswet,

Hi jenswet,

Thanks for your question online. Let me check it and I’ll get back to you shortly.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen: 9 months 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Ryon,

Hi jenswet,

You will not need to install all tools, like Ozone, SystemView, SmartSnippets etc. Only the Eclipse and the toolchain should be installed in the Ubuntu.

Thanks, PM_Dialog

jenswet
Offline
Last seen: 2 years 5 months ago
Joined: 2018-10-16 16:15
Hello PM_Dialog,

Hello PM_Dialog,

thanks for getting back to me.

How can I install the toolchain via CLI without GUI interaction and tell SmartSnippets the path?

Can you provide me the download link for the toolchain?

Thanks!

PM_Dialog
Offline
Last seen: 9 months 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi jenswet,

Hi jenswet,

In Section 1.2 in the SmartSnippets Studio you will find steps detailed steps for how to install the tool in the Ubuntu OS. Just follow the suggested steps. Regarding the GCC arm-none-eabi toolchain is available on the ARM website.

Thanks, PM_Dialog

jenswet
Offline
Last seen: 2 years 5 months ago
Joined: 2018-10-16 16:15
Hello,

Hello,

it was very hard to install the Smartsnippets Studio in a headless mode. But I did succeed.

If anyone else tries to build a project from a pipeline / ci / cd runner like Gitlab, Github, Bitbucket, etc please refer to following repository and docker images:

https://hub.docker.com/repository/docker/jenswet/dialog-smartsnippets-st...

https://github.com/jenswet/docker-smartsnippets-studio

 

@PM_Dialog: Your unattended install is broken. I tried the following:

./SmartSnippets_Studio-linux.gtk.x86_64-2.0.12.1623.run -- silent /opt/DiaSemi /not/existing /home 2.0.12.1623

But it stops with an xserver error (no display found). Only way is to complete the installation manally by extracting the missing tar files etc... See my Dockerfile for more information. Maybe you can fix this in a later version. That would be great.

Best regards

Jens

PM_Dialog
Offline
Last seen: 9 months 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi jenswet,

Hi jenswet,

Thanks for your indication – will check it.

Thanks, PM_Dialog