Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alexey-utkin opened this issue Sep 9, 2022 · 0 comments · Fixed by #455
Closed

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

alexey-utkin opened this issue Sep 9, 2022 · 0 comments · Fixed by #455
Assignees
Labels
enhancement New feature or request

Comments

@alexey-utkin
Copy link
Collaborator

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.

@alexey-utkin alexey-utkin added the enhancement New feature or request label Sep 9, 2022
@alexey-utkin alexey-utkin self-assigned this Sep 9, 2022
@alexey-utkin alexey-utkin changed the title Implement support for custom build script inside CI Action on Gitgub Implement support for custom build script inside CI Action on Github Sep 9, 2022
@korifey korifey moved this to Todo in UTBot C/C++ Sep 9, 2022
@alexey-utkin alexey-utkin moved this from Todo to In Progress in UTBot C/C++ Sep 9, 2022
Repository owner moved this from In Progress to Done in UTBot C/C++ Sep 12, 2022
alexey-utkin added a commit that referenced this issue Sep 12, 2022
…Part 2 (Command line) #458 (#459)

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

* Implement support for custom build script inside CI Action on Github Part 2 (Command line) #458
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant