diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 984ad1f227..23f45329ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,6 +138,7 @@ jobs: - name: Compile and test main projects run: | + mkdir -p $HOME/.triplequote && echo "$HYDRA_LICENSE" > "$HOME/.triplequote/hydra.license" sbt \ "frontend/test:compile; \ backend/test; \ diff --git a/frontend/src/test/scala/bloop/HydraCompileSpec.scala b/frontend/src/test/scala/bloop/HydraCompileSpec.scala index a400fbd618..07d99f93f8 100644 --- a/frontend/src/test/scala/bloop/HydraCompileSpec.scala +++ b/frontend/src/test/scala/bloop/HydraCompileSpec.scala @@ -1,5 +1,7 @@ package bloop +import java.nio.file.Paths + import scala.tools.nsc.Properties import bloop.io.AbsolutePath @@ -22,7 +24,7 @@ object HydraCompileSpec extends BaseCompileSpec { private val TriplequoteResolver = MavenRepository.of( "https://repo.triplequote.com/artifactory/libs-release/" ) - private val HydraVersion = "2.2.2" + private val HydraVersion = "2.3.11" object HydraTestProject extends bloop.util.BaseTestProject { override protected def mkScalaInstance( @@ -53,14 +55,13 @@ object HydraCompileSpec extends BaseCompileSpec { } } - // private lazy val hydraLicenseExists: Boolean = { - // val hydraLicense = Paths.get(System.getProperty("user.home"), ".triplequote", "hydra.license") - // hydraLicense.toFile.exists() - // } + private lazy val hydraLicenseExists: Boolean = { + val hydraLicense = Paths.get(System.getProperty("user.home"), ".triplequote", "hydra.license") + hydraLicense.toFile.exists() + } override def test(name: String)(fun: => Any): Unit = { - // if (hydraLicenseExists) super.test(name)(fun) - // else ignore(name, "Hydra license is missing")(fun) - ignore(name, "Hydra license is missing")(fun) + if (hydraLicenseExists) super.test(name)(fun) + else ignore(name, "Hydra license is missing")(fun) } }