Skip to content

0.3.0

Choose a tag to compare

@UlisesGascon UlisesGascon released this 22 Nov 13:51
· 23 commits to main since this release
c01d9a0

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 main

After:

git_checkout_branch main opinionated-bash-scripts

Migration 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

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_availability function (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

Full Changelog: 0.2.1...0.3.0