Build project from Gitlab CI

Learn MoreFAQsTutorials

8 posts / 0 new
Last post
jenswet
Offline
Last seen:7 months 3 weeks ago
加入: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:7 months 3 weeks ago
加入:2018-10-16 16:15
我只是试着如果一般

我只是试着如果一般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?

谢谢!

PM_Dialog
Offline
Last seen:9 hours 36 min ago
Staff
加入: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 hours 36 min ago
Staff
加入: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:7 months 3 weeks ago
加入: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 hours 36 min ago
Staff
加入: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:7 months 3 weeks ago
加入: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 hours 36 min ago
Staff
加入:2018-02-08 11:03
Hi jenswet,

Hi jenswet,

Thanks for your indication – will check it.

Thanks, PM_Dialog