Skip to content

Implement support for custom build script inside CI Action on Github #451

Closed
@alexey-utkin

Description

@alexey-utkin

Currently there are two ways to extract the compilation and linking information from the project

  • automatic, if the project has CMakeList.txt
  • manual, if the project has any other build procedure.

Let implement the thirds automatic way, if the the project has the utbot_build.sh script in the project root.
The utbot_build.sh script is implemented by author of the project and build the project into the build project folder.
Here the build project folder is the folder that is mentioned as a build folder in the UTBotCpp wizard setup.

Then the procedure of UTBotCpp configuration is following:

  • UTBotCpp creates the build folder at the configuration stage as it made it earlier
  • UTBotCpp is looking for the utbot_build.sh script at the project root and if does not exists, returns to fallback scenario
  • If the utbot_build.sh script exists, UTBotCpp creates the wrapper script utbot_configure.sh in the build folder with the context
    #!/bin/bash
    # This file is automatically generated by UnitTestBot. For further information see https://unittestbot.org

    cd ..
    ./utbot_build.sh

The wrapper need for the run of bear configurator from the build folder.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions