-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Test "make release" #1494
Test "make release" #1494
Conversation
Makefile
Outdated
@@ -55,14 +55,22 @@ ifndef TAG | |||
$(error Please invoke with `make TAG=<new-version> release`, where <new-version> is either an increment specifier (patch, minor, major, prepatch, preminor, premajor, prerelease), or an explicit major.minor.patch version number) | |||
endif | |||
|
|||
# Ensures there are version tags in repository | |||
.PHONE: _ensure-current-version |
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.
isn't .PHONY
more typical?
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.
typo ... lol
8b90b55
to
d02ea3d
Compare
I'm confused; does this just test that |
Currently yes, at least it'll catch #1492, I'm not sure what kind of behavior here you expect here? |
I guess ensuring that the old version number is completely replaced would be nice :-) |
How would you like to do it? Simply |
:-/ I'm not really sure what the best approach is. |
I don't think we need to reach a perfect or very very good status each time ... actually it's good enough to catch some potential problems already, like #1492, and the other tests are not perfect either, we can just keep making it better. |
Makefile
Outdated
@@ -56,7 +56,7 @@ ifndef TAG | |||
endif | |||
|
|||
# Ensures there are version tags in repository | |||
.PHONE: _ensure-current-version | |||
.PHONY: _ensure-current-version |
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.
i think this change belongs to the other commit?
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.
Too tired, thanks for catching!
d02ea3d
to
5a9e258
Compare
.travis.yml
Outdated
@@ -38,6 +39,7 @@ env: | |||
- PATH="~/.cabal/bin/:$(echo $PATH | sed 's/::/:/')" | |||
- NVM_DIR="${TRAVIS_BUILD_DIR}" | |||
matrix: | |||
- MAKE_RELEASE=true GIT_EDITOR="sed -i '1 s/^/99.99.99 make release test/'" |
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.
could we move the GIT_EDITOR
var to the script command instead of in the matrix?
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.
done
5a9e258
to
229c7e6
Compare
Can help detect one more problem in #1492 and make sure Makefile changes won't break release process!