Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Test "make release"#1494

Merged
ljharb merged 2 commits intonvm-sh:masterfrom
PeterDaveHello:test-make-release
Apr 9, 2017
Merged

Test "make release"#1494
ljharb merged 2 commits intonvm-sh:masterfrom
PeterDaveHello:test-make-release

Conversation

@PeterDaveHello
Copy link
Collaborator

@PeterDaveHello PeterDaveHello commented Apr 9, 2017

Can help detect one more problem in #1492 and make sure Makefile changes won't break release process!

Makefile Outdated
endif

# Ensures there are version tags in repository
.PHONE: _ensure-current-version
Copy link
Member

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

typo ... lol

@ljharb
Copy link
Member

ljharb commented Apr 9, 2017

I'm confused; does this just test that make release completes successfully, but doesn't test any of its behavior?

@ljharb ljharb added the testing Stuff related to testing nvm itself. label Apr 9, 2017
@PeterDaveHello
Copy link
Collaborator Author

PeterDaveHello commented Apr 9, 2017

Currently yes, at least it'll catch #1492, I'm not sure what kind of behavior here you expect here?

@ljharb
Copy link
Member

ljharb commented Apr 9, 2017

I guess ensuring that the old version number is completely replaced would be nice :-)

@PeterDaveHello
Copy link
Collaborator Author

PeterDaveHello commented Apr 9, 2017

How would you like to do it? Simply grep certain files under the root of nvm?

@ljharb
Copy link
Member

ljharb commented Apr 9, 2017

:-/ I'm not really sure what the best approach is.

@PeterDaveHello
Copy link
Collaborator Author

PeterDaveHello commented Apr 9, 2017

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.


# Ensures there are version tags in repository
.PHONE: _ensure-current-version
.PHONY: _ensure-current-version
Copy link
Member

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?

Copy link
Collaborator Author

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!

.travis.yml Outdated
- 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/'"
Copy link
Member

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@ljharb ljharb merged commit 229c7e6 into nvm-sh:master Apr 9, 2017
@PeterDaveHello PeterDaveHello deleted the test-make-release branch April 9, 2017 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Stuff related to testing nvm itself.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants