Repository navigation
0.3.0
What's Changed
Main Changes
- Added pipeline to the project
- Added tests and linter capabilities in a dockerized environment
- Added tests for most of the functions
- Refactored some functions to improve their usability (breaking changes)
Breaking Changes
- Rewrite
build_docker_simple_image(53d90c7)- The folder argument is optional
- The arguments order has changed
- Make folder an optional argument in
git_checkout_branch(15f13e2) - Drop function
check_secrets(ea7a103) - Add function
check_environmental_variables(ea7a103)
Understanding check_environmental_variables
This function is used as:
check_secrets "DB_USER" "DB_PASS"
In this example, check_secrets checks if the DB_USER and DB_PASS environment variables are set. If either is not set, it prints an error message and returns 1. If both are set, it prints a confirmation message for each:
"OK: DB_USER is set."
"OK: DB_PASS is set."
Migration for git_checkout_branch
Just Swap the arguments. Now the folder path is optional
Before:
git_checkout_branch opinionated-bash-scripts mainAfter:
git_checkout_branch main opinionated-bash-scriptsMigration for build_docker_simple_image
Just Swap the arguments. Now the folder path is optional
Current:
build_docker_simple_image my_image Dockerfile.test docker_folder
build_docker_simple_image my_image Dockerfile.test
build_docker_simple_image my_image PRs
- Add makefile with lint command by @UlisesGascon in #10
- Add shebang to the files by @UlisesGascon in #11
- Lint the project files by @UlisesGascon in #12
- Add pipeline to the project by @UlisesGascon in #13
- Add test infrastructure and tests cases for FS scripts by @UlisesGascon in #14
- Add tests to core logic by @UlisesGascon in #15
- Rewrite check_secrets function by @UlisesGascon in #16
- Improve Networking functions by @UlisesGascon in #17
- Improve Git functions by @UlisesGascon in #18
- Improve Docker functions feat: rewrite build_docker_simple_image by @UlisesGascon in #19
- Improve documentation by @UlisesGascon in #20
- Bump to 3.0.0 by @UlisesGascon in #21
Other Changes
- Bump to 3.0.0 (0d22234)
- Add information for local development (130ea32)
- Update example (431f180)
- Add error if URL is not provided in
git_clone_public_project(1ee7500) - Add more checks in
git_clone_private_project(153022a) - Extend compatibility for
check_local_mqtt_availabilityfunction (75d0c4f) - Improve business logic for
check_local_websockets_availability(27a72f3) - Add tests for get_version (399545f)
- Add tests for load_secrets (bb72197)
- Add tests for docker (d349d13)
- Add tests for git (1b0fb4d)
- Add tests for networking (c371494)
- Add test cases for fs file (3ac59bf)
- Extend linter to cover test files (1cd3950)
- Add test command to makefile (013210b)
- Add linter for Docker image (933bc58)
- Add tests step to the pipeline (61e85b4)
- Add a test mode that runs in a non-interactive environment (a5f8485)
- Add pipeline to the project (216b7ba)
- Lint the project files (132b392)
- Add shebang to the files (ed12b95)
- Add makefile with lint command (1272ec4)
Changelog
- 0d22234 chore: bump to 3.0.0 by @UlisesGascon
- 130ea32 docs: add information for local development by @UlisesGascon
- 431f180 docs: update example by @UlisesGascon
- 53d90c7 feat: rewrite
build_docker_simple_imageby @UlisesGascon - 1ee7500 feat: add error if URL is not provided in
git_clone_public_projectby @UlisesGascon - 153022a feat: add more checks in
git_clone_private_projectby @UlisesGascon - 15f13e2 feat: make folder optional argument in
git_checkout_branchby @UlisesGascon - 75d0c4f fix: extend compatibility for
check_local_mqtt_availabilityfunction by @UlisesGascon - 27a72f3 feat: improve business logic for
check_local_websockets_availabilityby @UlisesGascon - 668640f feat: rewrite
check_secretsby @UlisesGascon - ea7a103 chore: rename
check_secretstocheck_environmental_variablesby @UlisesGascon - 399545f test: add tests for get_version by @UlisesGascon
- bb72197 test: add tests for load_secrets by @UlisesGascon
- d349d13 test: add tests for docker by @UlisesGascon
- 1b0fb4d test: add tests for git by @UlisesGascon
- c371494 test: add tests for networking by @UlisesGascon
- 3ac59bf test: add test cases for fs file by @UlisesGascon
- 1cd3950 chore: extend linter to cover test files by @UlisesGascon
- 013210b feat: add test command to makefile by @UlisesGascon
- 933bc58 feat: add linter for Docker image by @UlisesGascon
- 61e85b4 feat: add tests step to the pipeline by @UlisesGascon
- a5f8485 feat: add a test mode that runs in a non-interactive environment by @UlisesGascon
- 216b7ba feat: add pipeline to the project by @UlisesGascon
- 132b392 chore: lint the project files by @UlisesGascon
- ed12b95 feat: add shebang to the files by @UlisesGascon
- 1272ec4 feat: add makefile with lint command by @UlisesGascon
Full Changelog: 0.2.1...0.3.0