These common scripts are used in Libero projects builds.
To add to a repository, run:
git submodule add https://github.com/libero/scripts .scripts
and commit the result.
To initialize the submodule in a repository that uses it, run:
git submodule init
git submodule update
To update the copy of scripts
used in a repository, run:
git submodule update --remote
and commit the result.
If you add a shellscript consider using bats to add tests for it.
To run tests locally:
- install shellcheck (
apt/brew/yum install shellcheck
)
make setup
make test
make teardown
NOTE: some tests grep docker images
output. If in doubt use docker system prune --all
to ensure a clean test run.
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.
- Read the code of conduct.