Skip to content

Collection of CI/CD tools/scripts that are primarily used in closed environments such as local servers.

License

Notifications You must be signed in to change notification settings

hlrs-vis/cicd-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

cicd-tools

Collection of CI/CD tools/scripts that are primarily used in closed environments such as local servers.

build_check.sh

This script is a tool to do a build check of a cmake based github repository. It first checks the build status of the github action of the specified github repository. In case of valid checks it will proceed to fetch the latest changes and starts the configuring process of cmake followed by starting the compile process with make. If any of the processes fail to run successfully the script will stop and print out the error log in /tmp/build_check.log (default location)

Dependencies

• curl        (for GitHub API)
• jq          (JSON parser)
• git         (clone / pull)
• cmake       (configure)
• make        (build)

How to use

Put this script or a symbolic link of it in your preferred location and adjust the setup in the script itself. Make it executable and run it:

chmod +x build_check.sh
./build_check.sh

Another approach is to build a wrapper script which calls this script with additional configuration parameter. For more information about the configuration, see the section Further configuration .

Further configuration

Adjust general config

GITHUB_REPO="Hansi/Wurstbrot" REPO_DIR="/home/hansi/$(basename "$GITHUB_REPO")" BUILD_DIR="$REPO_DIR/build" RECIPIENTS="wurst@hans.com" LOG_FILE="/tmp/build_wurstbrot_check.sh" ./bin/build_check.sh

Adjust cmake config

GITHUB_REPO="other/repo" CMAKE_CONFIG="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++" ./bin/build_check.sh

Adjust mail config

e.g. Postfix mail client

GITHUB_REPO="other/repo" MAIL_CLIENT_SYNTAX="sendmail -t" ./bin/build_check.sh

About

Collection of CI/CD tools/scripts that are primarily used in closed environments such as local servers.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages