1- import $ivy .`com.goyeau::mill-scalafix::0.4.0 `
1+ import $ivy .`com.goyeau::mill-scalafix::0.4.2 `
22import $ivy .`com.lihaoyi::mill-contrib-buildinfo:$MILL_VERSION`
33import $ivy .`de.tototec::de.tobiasroeser.mill.integrationtest::0.7.1`
44import $ivy .`io.chris-kipp::mill-ci-release::0.1.10`
@@ -17,7 +17,7 @@ import de.tobiasroeser.mill.vcs.version.VcsVersion
1717import io .kipp .mill .ci .release .CiReleaseModule
1818import io .kipp .mill .ci .release .SonatypeHost
1919
20- val millVersions = Seq (" 0.10.15 " , " 0.11.12" )
20+ val millVersions = Seq (" 0.12.4 " , " 0.11.12" , " 0.10.15 " )
2121val millBinaryVersions = millVersions.map(scalaNativeBinaryVersion)
2222val scala213 = " 2.13.14"
2323val artifactBase = " mill-github-dependency-graph"
@@ -102,25 +102,27 @@ trait ItestCross extends Cross.Module[String] with MillIntegrationTestModule {
102102
103103 override def testInvocations : T [Seq [(PathRef , Seq [TestInvocation .Targets ])]] =
104104 T {
105+ val env = if (millTestVersion() >= " 0.12" )
106+ Map (
107+ " COURSIER_REPOSITORIES" -> s " central sonatype:releases ivy:file:// ${T .dest.toString.replaceFirst(" testInvocations" , " test" )}/ivyRepo/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext] "
108+ )
109+ else
110+ Map .empty[String , String ]
105111 Seq (
106- PathRef (testBase / " minimal" ) -> Seq (
107- TestInvocation .Targets (Seq (" checkManifest" ), noServer = true )
108- ),
109- PathRef (testBase / " directRelationship" ) -> Seq (
110- TestInvocation .Targets (Seq (" verify" ), noServer = true )
111- ),
112- PathRef (testBase / " eviction" ) -> Seq (
113- TestInvocation .Targets (Seq (" verify" ), noServer = true )
114- ),
115- PathRef (testBase / " range" ) -> Seq (
116- TestInvocation .Targets (Seq (" verify" ), noServer = true )
117- ),
118- PathRef (testBase / " reconciledRange" ) -> Seq (
119- TestInvocation .Targets (Seq (" verify" ), noServer = true )
120- ),
121- PathRef (testBase / " cyclical" ) -> Seq (
122- TestInvocation .Targets (Seq (" checkManifest" ), noServer = true )
112+ " minimal" -> " checkManifest" ,
113+ " directRelationship" -> " verify" ,
114+ " eviction" -> " verify" ,
115+ " range" -> " verify" ,
116+ " reconciledRange" -> " verify" ,
117+ " cyclical" -> " checkManifest"
118+ ).map { case (testName, testMethod) =>
119+ PathRef (testBase / testName) -> Seq (
120+ TestInvocation .Targets (
121+ Seq (testMethod),
122+ noServer = true ,
123+ env = env
124+ )
123125 )
124- )
126+ }
125127 }
126128}
0 commit comments