ros-industrial / industrial_ci

Easy continuous integration repository for ROS repositories
Apache License 2.0
246 stars 129 forks source link

docker and static analysis #773

Open muttistefano opened 2 years ago

muttistefano commented 2 years ago

Hi everyone, im trying to integrate a software analysis tool(sonarcloud) into a github action that also includes industrial_ci to build a ROS package. The problem is that the build is done into the docker, by industrial_ci, and after that i cannot access the build folder wich is needed by sonarcloud. Is there a way to use industrial_ci without the docker part, or another work-around? Thanks

Briancbn commented 2 years ago

Hi @muttistefano, Yes you can, by setting ISOLATION: "shell".

Here is an example, https://github.com/ros-industrial/easy_manipulation_deployment/blob/eu-conference/.github/workflows/build.yml

Note that the build folder will be in ~/target_ws/build instead of the default relative root path for the CI.

muttistefano commented 2 years ago

Hi @Briancbn , thank you, it is working without docker now. Is there a chance this parameter is missing from the docs? or is it included and explained somewhere else? Thanks

Briancbn commented 2 years ago

I don't think it is inside the docs, @mathias-luedtke. You are welcome to contribute:)

mathias-luedtke commented 2 years ago

ISOLATION: "shell" is not documented, as it is/was a beta feature and needs special configuration.

If you just want to access the builds from the outside, you can specify BASEDIR.