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

Infer Mainframer version from Git tag. #203

Merged
merged 6 commits into from Mar 10, 2018

Conversation

artem-zinnatullin
Copy link
Contributor

This is part of #198, next step is configuring deploys from tag builds on Travis.

@artem-zinnatullin
Copy link
Contributor Author

Closes #192

# 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."
Copy link
Contributor

Choose a reason for hiding this comment

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

Non-tag?

Copy link
Contributor Author

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.
Copy link
Contributor

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???

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol suuuure

@artem-zinnatullin artem-zinnatullin merged commit 8c3033f into development Mar 10, 2018
@artem-zinnatullin artem-zinnatullin deleted the az/get-version-from-git-tag branch March 10, 2018 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants