Repository navigation
Access caps from travis env variables - #1001
Conversation
|
Looks like travis is gone mad... their doc says JDK 8 is default but i could see JDK 10 is picked up by default and its not possible to switch to 8...will try later... |
|
@imurchie Can you help on this if you know any other options to force travis to JDK 8? |
jdk:
- oraclejdk8Seems to work. https://travis-ci.org/appium/appium-espresso-driver/jobs/416092729 |
|
@imurchie Looks like an issue specific to their OSX build images. may be we cant do much... |
|
still uses jdk 10 Java version: 10.0.1, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home |
| include: | ||
| - language: java | ||
| install: true | ||
| - language: node_js |
There was a problem hiding this comment.
This won't work. With language as 'node_js' but no node version, you'll get 0.10, which Appium will not install with. Further, jdk will be ignored.
There was a problem hiding this comment.
Yes but just checking container java version
|
Weird. I just pushed a basically change-less branch (just adding logging the available Java versions) and it's getting 1.8 as far as I can tell. |
|
@imurchie Looks like its a problem only in |
|
Oh yeah! That does seem to be the case. |
|
The following works: diff --git a/.travis.yml b/.travis.yml
index 6702255d..8b1b30ad 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,12 +5,17 @@ sudo: required
matrix:
include:
- language: java
+ jdk:
+ - oraclejdk8
install: true
os: osx
- osx_image: xcode9.3
+ osx_image: xcode9.4
before_install:
- - brew update
- - brew outdated xctool || brew upgrade xctool
+ - brew tap caskroom/versions
+ - brew cask install java8
+ - export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
+ - java -version
+
- npm install -g appium
script:
- ./gradlew clean build xcuiTest -x test -x signArchiveshttps://travis-ci.org/appium/java-client/builds/416414956 The |
use JDK 8 force java 8 in travis force jdk 8 in travis use jdk switcher to use jdk 8 force JDK 8 force java 8 force jdk 8 install java 8 through brew
Change list
Access caps from travis env variables
Types of changes
What types of changes are you proposing/introducing to Java client?
Put an
xin the boxes that apply@mykola-mokhnach ping