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

Build latest vim quickly from git mirror. #211

Merged
merged 1 commit into from May 15, 2015

Conversation

starcraftman
Copy link
Contributor

From the language I understood you still wanted to test against stock & also latest vim 7.4 line. So that's what this does. You can later add any other version/config of vim by simply using another RVM.

@@ -1,9 +1,22 @@
language: vim
language: ruby
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the advantage of using ruby here? To test vim Ruby bindings? But then I with we'd also test other bindings like Python, etc. I don't think it's necessary right now since we don't do anything that depends on them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cirosantilli I could be mistaken, but I couldn't find any documentation on travis' site regarding language: vim. If there is documentation of vim as a travis language, can you point me to it? AFAIK that means that the current tests use their base ruby image.

For this PR it doesn't matter what language is at the top so long as I know what versions I can switch on to differentiate stock & latest build. In that respect, the RVM versions are simply well known. I could have just as arbitrarily used python versions. If there is a list of vim versions provided I'll use that.

Regarding bindings, not relevant to my decision process as you can see. If you ever needed specific version of python you can just easily use a python: 2.6 line in the yml.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think Ruby its the default for unknown languages: http://docs.travis-ci.com/user/getting-started/#Note

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cirosantilli Right so it is as I imagined. I guess it is just cosmetics. I'll return it to vim if you like.

@starcraftman
Copy link
Contributor Author

@cirosantilli I think that takes care of your notes. Happy vimming & thanks for plugin.

@@ -1,9 +1,23 @@
language: vim
rvm:
- 1.8.7 # Use stock
- 1.9.2 # Build latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do this? Wouldn't it be possible to install everything in one go, and then run two test commands separately?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cirosantilli Test execution isolation. If one version of vim fails (say 7.4.x cuz of new/changed behaviour) it shouldn't crash the stock test. If you ran them one after the other and 'anded' the result, then on any failure you'd have to check the log & see which of the two sets of vader tests failed. By separating, less investigating/thinking.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ahh, this is useful then. How about using multiple env instead? http://docs.travis-ci.com/user/build-configuration/#The-Build-Matrix A bit more elegant since we don't care about Ruby, and easier to retrieve in the if checks, and would self document since strings. E.g. TEST=latest and TEST=package

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cirosantilli Interesting, hadn't read up on how extensively you can customize the build matrix, even exclusions! Neat.

@cirosantilli
Copy link
Collaborator

Thanks! Please squash to one commit.

Also, what does stock mean? Wouldn't package be clearer?

* Executes test against travis package vim & latest 7.4.x
* Fixes preservim#201
@starcraftman
Copy link
Contributor Author

@cirosantilli I guess in my mind I was using it as meaning "off the shelf" as in from the system's packages. I can see how that's a bit more open to interpretation than "package". Done.

cirosantilli added a commit that referenced this pull request May 15, 2015
Build latest vim quickly from git mirror.
@cirosantilli cirosantilli merged commit e43bca7 into preservim:master May 15, 2015
@cirosantilli
Copy link
Collaborator

@starcraftman thanks for this PR and for patiently updating it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add travis tests on more recent Vim versions, at least 1.9.4
2 participants