-
Notifications
You must be signed in to change notification settings - Fork 32
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
lua5.1 compatibility #89
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5fbf646
lua5.1 compatibility
smarek dabf819
Lua 5.1 through 5.3 using ci-lua and ENV VARIETY set on CI, defaults …
smarek 24cdf91
running Lua tests fixed
smarek ef47188
removed bash debug/verbose execution
smarek 277930f
Codestyle
smarek c596605
Update ci-lua
smarek abfc758
revert lua version specific changes to tests
smarek abb1867
Update kst-adoption-report
smarek 3cf26d3
simplify ci-lua
smarek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'd rather use only
lua
command in this script (not). Thelua${CURRENT_LUA_VERSION}
ci-*
scripts are not exactly designed for selecting the language compiler/interpreter like you did here. This should be done in.travis.yml
ideally by installing the rightapt
packages or running some commands, eventually inprepare-lua
script.If running this (
prepare-lua:13
) will make available only thelua5.3
command and notlua
(I don't know, that's a question):hererocks lua_install -r^ -l${VARIETY}
Can you rather add an alias or symlink the
lua5.3
executable (in.travis.yml
build matrix orprepare-lua
) to be available also aslua
?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.
Well, the Lua binary selection was already in place, I've only modified it to reflect on Travis env variable VARIETY
see https://github.com/kaitai-io/kaitai_struct_tests/blob/master/ci-lua#L13
If you want to change the way it was, i've just tested and hererocks always installs the lua into
lua_install/bin/lua
regardless of version in my environment. If the corect lua bin detection procedure was always pointless, we can safely get rid of that.However, it might be useful for development if multiple lua binaries are installed, not through
hererocks
, just sayinThere 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.
Yeah, if that's the case, I'd definitely prefer it.
Well, I think it's easier to just temporarily symlink the
lua
command than rely on some magic variable, if one needs to run multiple Lua versions locally. Are the Lua versions 5.1, 5.2, and 5.3 really so different that it makes sense to test them all?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.
Ok, i'll change the script to only use
lua
binary, no detection whatsoeverThey are different, especially 5.1 to 5.3 is big step, and 5.2 is the target we want because of Wireshark, so I'd really like to maintain high compatibility by testing with each version separately
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.
Also, comparison
5.3
5.2
5.1