mirror of https://github.com/sbt/sbt.git
Merge pull request #4294 from eed3si9n/wip/java6test
Build sbt 0.13 using JDK 6
This commit is contained in:
commit
226d16a0fe
52
.travis.yml
52
.travis.yml
|
|
@ -1,25 +1,14 @@
|
|||
sudo: false
|
||||
|
||||
# https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming
|
||||
# Travis now defaults to Trusty, which is missing openjdk6.
|
||||
dist: precise
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.ivy2/cache
|
||||
- $HOME/.sbt/boot
|
||||
dist: trusty
|
||||
|
||||
language: scala
|
||||
|
||||
# TODO - we'd like to actually test everything, but the process library has a deadlock right now
|
||||
jdk:
|
||||
- openjdk6
|
||||
# - oraclejdk7
|
||||
- oraclejdk8
|
||||
|
||||
# WORKAROUND https://github.com/travis-ci/travis-ci/issues/5227
|
||||
addons:
|
||||
hosts: workaround-travis-ci-issue-5227
|
||||
hostname: workaround-travis-ci-issue-5227
|
||||
env:
|
||||
global:
|
||||
- JABBA_HOME=/home/travis/.jabba
|
||||
|
||||
env:
|
||||
matrix:
|
||||
|
|
@ -42,18 +31,33 @@ env:
|
|||
- SBT_CMD="scripted source-dependencies/*3of3"
|
||||
- SBT_CMD="scripted tests/*"
|
||||
- SBT_CMD="scripted project-load/*"
|
||||
- SBT_CMD="checkBuildScala211"
|
||||
- SBT_CMD="repoOverrideTest:scripted dependency-management/*"
|
||||
- SBT_CMD="mavenResolverPluginTest:scripted dependency-management/*2of2"
|
||||
- SBT_CMD="mavenResolverPluginTest:scripted dependency-management/*1of2 project/transitive-plugins"
|
||||
|
||||
script:
|
||||
- sbt -J-XX:ReservedCodeCacheSize=128m -Dsbt.repository.secure=false "$SBT_CMD"
|
||||
|
||||
before_install:
|
||||
# https://github.com/travis-ci/travis-ci/issues/8408
|
||||
- unset _JAVA_OPTIONS
|
||||
- curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.10.1/install.sh | bash && . ~/.jabba/jabba.sh
|
||||
|
||||
install:
|
||||
- $JABBA_HOME/bin/jabba install "zulu@1.6.107"
|
||||
- export JAVA_HOME="$JABBA_HOME/jdk/zulu@1.6.107"
|
||||
- export PATH="$JAVA_HOME/bin:$PATH"
|
||||
- java -version
|
||||
|
||||
before_cache:
|
||||
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
|
||||
- find $HOME/.sbt -name "*.lock" -delete
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.ivy2/cache
|
||||
- $HOME/.sbt/boot
|
||||
|
||||
notifications:
|
||||
email:
|
||||
- sbt-dev-bot@googlegroups.com
|
||||
|
||||
script:
|
||||
- sbt -J-XX:ReservedCodeCacheSize=128m "$SBT_CMD"
|
||||
|
||||
# Tricks to avoid unnecessary cache updates
|
||||
- find $HOME/.sbt -name "*.lock" | xargs rm
|
||||
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
|
||||
|
|
|
|||
|
|
@ -535,7 +535,7 @@ def rootSettings = fullDocSettings ++
|
|||
Transform.conscriptSettings(bundledLauncherProj)
|
||||
def otherRootSettings = Seq(
|
||||
Scripted.scriptedPrescripted := { addSbtAlternateResolver _ },
|
||||
Scripted.scriptedLaunchOpts := List("-XX:MaxPermSize=256M", "-Xmx1G"),
|
||||
Scripted.scriptedLaunchOpts := List("-XX:MaxPermSize=256M", "-Xmx1G", "-Dsbt.repository.secure=false"),
|
||||
Scripted.scripted <<= scriptedTask,
|
||||
Scripted.scriptedUnpublished <<= scriptedUnpublishedTask,
|
||||
Scripted.scriptedSource := (sourceDirectory in sbtProj).value / "sbt-test",
|
||||
|
|
@ -544,7 +544,7 @@ def otherRootSettings = Seq(
|
|||
},
|
||||
aggregate in bintrayRelease := false
|
||||
) ++ inConfig(Scripted.MavenResolverPluginTest)(Seq(
|
||||
Scripted.scriptedLaunchOpts := List("-XX:MaxPermSize=256M", "-Xmx1G"),
|
||||
Scripted.scriptedLaunchOpts := List("-XX:MaxPermSize=256M", "-Xmx1G", "-Dsbt.repository.secure=false"),
|
||||
Scripted.scripted <<= scriptedTask,
|
||||
Scripted.scriptedUnpublished <<= scriptedUnpublishedTask,
|
||||
Scripted.scriptedPrescripted := { f =>
|
||||
|
|
@ -558,7 +558,9 @@ def otherRootSettings = Seq(
|
|||
)) ++ inConfig(Scripted.RepoOverrideTest)(Seq(
|
||||
Scripted.scriptedPrescripted := { _ => () },
|
||||
Scripted.scriptedLaunchOpts := {
|
||||
List("-XX:MaxPermSize=256M", "-Xmx1G", "-Dsbt.override.build.repos=true",
|
||||
List("-XX:MaxPermSize=256M", "-Xmx1G",
|
||||
"-Dsbt.repository.secure=false",
|
||||
"-Dsbt.override.build.repos=true",
|
||||
s"""-Dsbt.repository.config=${ Scripted.scriptedSource.value / "repo.config" }""")
|
||||
},
|
||||
Scripted.scripted <<= scriptedTask,
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ object Util {
|
|||
|
||||
lazy val javaOnlySettings = Seq[Setting[_]]( /*crossPaths := false, */ compileOrder := CompileOrder.JavaThenScala, unmanagedSourceDirectories in Compile <<= Seq(javaSource in Compile).join)
|
||||
lazy val baseScalacOptions = Seq(
|
||||
scalacOptions ++= Seq("-Xelide-below", "0"),
|
||||
scalacOptions ++= Seq("-Xelide-below", "0", "-target:jvm-1.6"),
|
||||
scalacOptions <++= scalaVersion map CrossVersion.partialVersion map {
|
||||
case Some((2, 9)) | Some((2, 8)) => Nil // support 2.9 for some subprojects for the Scala Eclipse IDE
|
||||
case _ => Seq("-feature", "-language:implicitConversions", "-language:postfixOps", "-language:higherKinds", "-language:existentials")
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
[repositories]
|
||||
local
|
||||
typesafe-ivy-releases: https://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
|
||||
typesafe-ivy-releases: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
scalaVersion := "2.10.1"
|
||||
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "2.0.M6-SNAP28"
|
||||
|
||||
testOptions in Test += Tests.Argument("-r", "custom.CustomReporter")
|
||||
|
||||
fork := true
|
||||
lazy val root = (project in file("."))
|
||||
.settings(
|
||||
scalaVersion := "2.10.6",
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "2.0.M6-SNAP28",
|
||||
testOptions in Test += Tests.Argument("-r", "custom.CustomReporter"),
|
||||
fork := true,
|
||||
javaOptions in Test += "-Dsbt.repository.secure=false"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue