Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow install beta #211

Merged
merged 13 commits into from
Nov 9, 2023
Merged

Allow install beta #211

merged 13 commits into from
Nov 9, 2023

Conversation

Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Oct 30, 2023

📚 Description

Closes: #210

Currently, the installer tool allows you to install a concrete version, once it was release. However, there is no easy way to benefit of the features/bug-fixes already merged into main unless you download the project and run the build.sh yourself.

🔖 Changes

  • Allow using main as [version], to get the main branch and build the "main non-stable" bashunit version.

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

Screenshot 2023-10-30 at 14 44 47

@Chemaclass Chemaclass added the enhancement New feature or request label Oct 30, 2023
@Chemaclass Chemaclass self-assigned this Oct 30, 2023
@Chemaclass
Copy link
Member Author

Can you help me with the failing test, @Tito-Kati or @khru ? I cannot reproduce it locally (with my MacOS) 🤔

@@ -7,6 +7,6 @@ cat bashunit >> bin/temp.sh
grep -v '^source' bin/temp.sh > bin/bashunit
rm bin/temp.sh

chmod +x bin/bashunit
chmod u+x bin/bashunit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
tests/acceptance/install_test.sh Show resolved Hide resolved
@antonio-gg-dev
Copy link
Member

I've fixed the error that the workflows were giving on Linux. By removing the git mock, I could have fixed the mock, but being an acceptance test, it seemed more correct to remove it.

Additionally, I've taken the liberty of applying the corrections I requested myself and making a few more minor changes.

echo "> Downloading the latest version: '$TAG'"
fi

curl -L -O -J "https://github.com/TypedDevs/bashunit/releases/download/$TAG/bashunit" 2>/dev/null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make senses to add header on the curl to track the version requested as well as the OS that is using?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"$(printf "> Downloading non-stable version: 'beta'\n> bashunit has been installed in the 'deps' folder")"\
"$output"
assert_file_exists "$install_dir"
assert_equals "$(printf "\e[1m\e[32mbashunit\e[0m - (non-stable) beta")" "$("$install_dir" --version)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are missing to test that the dir has been deleted

@khru khru changed the title Allow install main Allow install beta Nov 9, 2023
@Chemaclass Chemaclass requested a review from khru November 9, 2023 16:24
@khru khru merged commit 21e9197 into main Nov 9, 2023
7 checks passed
@khru khru deleted the feat/210-allow-install-main branch November 9, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow install main
3 participants