A template repository for Bash projects, including CI/CD setup, testing, and code coverage integration.
This repository serves as a template for new Bash projects, providing a starting point with essential configurations for continuous integration, testing, and code coverage.
To use this template as the basis for your new project, clone your new repository and start development.
# Navigate to your development directory
cd /path/to/your/dev/directory
# Clone your new repository
git clone https://github.com/reactive-firewall/MY-NEW-REPO.git MY-NEW-REPO
# Change into the project directory
cd MY-NEW-REPO
An example script speed_test.bash
is included in the bin
directory.
bin/speed_test.bash
Local: 4620K
Server: 1472K
To install the example script and other project components:
cd /tmp
git clone https://github.com/reactive-firewall/bash-repo.git bash-repo
cd bash-repo
make clean
You may need superuser permissions for installation.
sudo make install
To uninstall:
sudo make uninstall
For development and running tests, use the provided Makefile
.
make clean # Cleans up from any previous tests
make test # Runs the tests
make clean # Cleans up after tests
Contributions are welcome! Please adhere to the project's coding standards:
Ensure that all scripts use POSIX built-ins (e.g., use printf
instead of echo
) and follow the project's style guidelines, such as keeping the shebang line with an extra space (e.g., #! /bin/bash
).