Bug #15339
closedCI - add checks for std-lib CLI ?
Description
Currently, CI is largely ignorant of the install.
Adding checks for the std-lib items with binstubs/executables is simple and adds a minimal amount of time to the CI.
See GitHub PR #2028.
Files
Updated by MSP-Greg (Greg L) almost 6 years ago
- File pr_2028.patch added
Sorry for not mentioning it, but GH PR is just for Appveyor. Not sure if code should be added to all Travis builds...
PR CI failed for all three builds on Appveyor. All errors similar to:
\usr\bin\bundle --version
C:/usr/bin/bundle.cmd:33:in `load': cannot load such file -- C:/usr/lib/ruby/gems/2.6.0/gems/bundler-2.0.0.pre.1/exe/bundle (LoadError)
from C:/usr/bin/bundle.cmd:33:in `<main>'
Command exited with code 1
Something must be wrong with the bundler install code.
Patch attached.
Updated by Anonymous almost 6 years ago
How about creating this check in make task "make test" or "make test-all"?
Updated by MSP-Greg (Greg L) almost 6 years ago
@junaruga
-
I believe I have seen discussions on whether
make install
should be included in CI or not. -
The test suites can be run before
make install
. -
I'm not a good choice for making changes re Makefile, especially for cross platform use.
Given the above, I thought starting with Ruby's own Windows CI would be a good start.
JFYI, ruby-loco is running every test suite except basic from install (without using make). The build folder could be deleted beforehand. There were a few files that needed changing for that...
Thanks, Greg
Updated by MSP-Greg (Greg L) almost 6 years ago
- File pr_2028.patch pr_2028.patch added
Added 3 lines to rbinstall.rb, added bundle_ruby to Bundler's executables.
Both are minor fixups to r65963. Passes on Appveyor. Patch file updated. Nothing changed re Travis...
Updated by hsbt (Hiroshi SHIBATA) almost 6 years ago
- Status changed from Open to Assigned
- Assignee set to hsbt (Hiroshi SHIBATA)
Updated by hsbt (Hiroshi SHIBATA) almost 6 years ago
- Status changed from Assigned to Closed
Hi Greg.
Thanks for your report.
This is fixed ar r66384 by @usa (Usaku NAKAMURA).
I will consider to add cli check to our CI after Ruby 2.6 releasing.
Updated by naruse (Yui NARUSE) almost 6 years ago
- Has duplicate Bug #15407: bundle, bundler, irb, rdoc, ri commands broken if --program-suffix configure option is used added