scala / scala-jenkins-infra

A Chef cookbook that manages Scala's CI infrastructure.
https://scala-ci.typesafe.com
Apache License 2.0
14 stars 17 forks source link

nightly test run on Windows (2.12.x) #142

Closed SethTisue closed 8 years ago

SethTisue commented 8 years ago

2.11.x stuff needs to be generalized for jdk 6 vs 8. some previous details at #36

SethTisue commented 8 years ago

we should return to this later in the 2.12 cycle. deferring for now (with @adriaanm's consent)

adriaanm commented 8 years ago

I think we're going to need this to publish M4?

From https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-windows/134/console

[scala-2.12.x-integrate-windows] $ C:\cygwin\bin\bash -ex y:\tmp\hudson5002899977190592437.sh
+ '[' -f /usr/local/share/jvm/jvm-select ']'
+ echo 'WARNING: jvm-select not present. using system default Java'
WARNING: jvm-select not present. using system default Java
+ source scripts/jobs/integrate/windows
adriaanm commented 8 years ago

I'm a little confused by what goes on in that job. It fails with:

+ eval exec '"/cygdrive/c/java/jdk-1.6/jre/bin/java"' -Dfile.encoding=UTF-8 -server -XX:+AggressiveOpts -XX:+UseParNewGC -Xmx2G -Xss1M -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=128M -classpath '"C:/apache-ant-1.9.6/lib/ant-launcher.jar"' '-Dant.home="C:/apache-ant-1.9.6"' '-Dant.library.dir="C:/apache-ant-1.9.6/lib"' '-Dcygwin.user.home="Y:/jenkins"' org.apache.tools.ant.launch.Launcher -cp '""' ' "-Dstarr.version=2.11.7" "-Dscalac.args.optimise=-optimise" "-Dlocker.skip=1" "test"'
++ exec /cygdrive/c/java/jdk-1.6/jre/bin/java -Dfile.encoding=UTF-8 -server -XX:+AggressiveOpts -XX:+UseParNewGC -Xmx2G -Xss1M -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=128M -classpath C:/apache-ant-1.9.6/lib/ant-launcher.jar -Dant.home=C:/apache-ant-1.9.6 -Dant.library.dir=C:/apache-ant-1.9.6/lib -Dcygwin.user.home=Y:/jenkins org.apache.tools.ant.launch.Launcher -cp '' -Dstarr.version=2.11.7 -Dscalac.args.optimise=-optimise -Dlocker.skip=1 test
Buildfile: y:\jenkins\workspace\scala-2.12.x-integrate-windows\build.xml

desired.jars.uptodate:

boot:

init.git:

init:
     [copy] Copying 2 files to y:\jenkins\workspace\scala-2.12.x-integrate-windows\build\deps\junit
     [copy] Copying 29 files to y:\jenkins\workspace\scala-2.12.x-integrate-windows\build\deps\pax.exam
     [copy] Copying 1 file to y:\jenkins\workspace\scala-2.12.x-integrate-windows\build\deps\asm
     [copy] Copying 4 files to y:\jenkins\workspace\scala-2.12.x-integrate-windows\build\deps\partest
     [copy] Copying 1 file to y:\jenkins\workspace\scala-2.12.x-integrate-windows\build\deps\repl
     [copy] Copying 3 files to y:\jenkins\workspace\scala-2.12.x-integrate-windows\build\deps\scaladoc
     [echo] Using Scala 2.11.7 for STARR.
     [copy] Copying 5 files to y:\jenkins\workspace\scala-2.12.x-integrate-windows\build\deps\starr

BUILD FAILED
y:\jenkins\workspace\scala-2.12.x-integrate-windows\build.xml:456: 
  JDK 1.6 is not supported by this build!
adriaanm commented 8 years ago

I went in and just hardcoded the java home for now right in the script 👼