-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Added arm64 support to .travis.yml file #1199
Conversation
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.
This commit message should start with a one line summary that described the change. (I work with @odidev )
EDIT: I think I might have reviewed an old change? Either way, I think this PR could be cleaned up.
The change itself looks sane to me. Indeed the change should be squashed into one commit with a summary line, an empty line and following that the details description. Thank you. |
I spent a few hours yesterday banging my head against this file and noted a few other changes that could be made as long as we're updating the file:
|
Agreed.
They are there to force a successful result state - else the test is marked as failed.
What happens after 5? Are they run sequentially? |
.travis.yml
Outdated
@@ -12,7 +17,7 @@ install: | |||
- '[ "${TRAVIS_OS_NAME}" = "osx" ] && brew install ant || true' | |||
|
|||
script: | |||
- if [ "x$JDK" != "xdefault" ]; then wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh && export JAVA_HOME=$(bash install-jdk.sh --feature $JDK --emit-java-home | tail -1); export PATH=$JAVA_HOME/bin:$PATH; fi || true | |||
- if [ "${TRAVIS_CPU_ARCH}" != "arm64" ]; then if [ "x$JDK" != "xdefault" ]; then wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh && export JAVA_HOME=$(bash install-jdk.sh --feature $JDK --emit-java-home | tail -1); export PATH=$JAVA_HOME/bin:$PATH; fi || true; fi || true |
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.
These nested if
statements could be simplified with an &&
Yes, that's the concurrent limit. Job # 6 (in this case the osx one) will sit waiting until at least one of the others has finished. (And the osx jobs also tend to be the ones that have to wait on resources.) |
You can see, for example, in the tests run for this PR, the first 5 jobs started at 0:56:00 to 0:56:03 but the osx job didn't start until 0:58:23, corresponding to when job 2 completed after 2:19. |
I could live with that. The JDK12 job however is not really needed. It maybe, that at time of creation some special problem with JDK 12 was reported/observered, but I'm more attached to the ea (newest) job. |
Agree re: JDK12. Wouldn't mind testing vs. the current release (JDK 14) plus EA, however. |
I understand this for the one-liner conditionals, they're absolutely necessary in this case: However, when applied after
In the case that we aren't on the "arm64" test, we never enter this conditional. The test will not halt after the |
From the bash reference manual regarding an
|
One more suggestion. I just incorporated arm64 builds on my own project using this as a jumping off point, and occasionally experienced transient problems with the apt install of one of the 80 packages. Recommend adding the (Unless that's the whole reason for the |
Updated the travis file as suggested and squashed all changes into one commit with updated commit message. Please review and let me know if any changes required. Updates:
|
Changes look good. I have a few more suggestions after a few more hours playing with my own file, but they aren't really related to this change, so they can either be included or left to a future edit.
|
Updated the travis file as suggested. Please review and let me know if any changes required. Updates :
@matthiasblaesing : Thanks for the review. Author entry odidev is full name only. |
Looks great to me! |
@odidev I don't understand your reply. I'm accustomed to names consisting of at least a first and a lastname (or given and surname). Of course it is possible, that you come from a culture where only one name is given to a person, but then I'd like to know which. Please accept, that I won't merge without real author information. You did good work, there is no reason not attach your full name to it. |
Thanks for the explanation. I work with PureSoftware organization. Please find below personal details: Please let me know if any more information is required. |
@odidev Can you please amend your commit with that info and push it again? To permanently set it for all future commits:
|
Signed-off-by: Pruthvi Reddy <[email protected]>
@dbwiddis : I have updated the author details as suggested. |
@odidev thank you. |
@matthiasblaesing : Thanks for merging the changes. When can we have a release with these changes? |
@odidev any reason for the rush? The CI job changes nothing for the release. Before and after the change arm64 support is present in the JNA packages. |
Added arm64 support to .travis.yml file.