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
Infer Mainframer version from Git tag. #203
Conversation
Closes #192 |
ci/mainframer_version.sh
Outdated
# Script detects if build is triggered by git tag and sets it as Mainframer version, otherwise no-op. | ||
|
||
if [ -z "$TRAVIS_TAG" ]; then | ||
echo "non-tag build, using version from Cargo.toml." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-tag
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk
|
||
if [[ "$OSTYPE" == "linux-gnu" ]]; then | ||
sed --in-place "s/$OLD_VERSION/$NEW_VERSION/g" Cargo.toml | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then # macOS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL, everyone knows that Darwin == macOS. Right? Riiight???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol suuuure
This is part of #198, next step is configuring deploys from tag builds on Travis.