Skip to content

Commit 3cc191b

Browse files
authored
Merge pull request #10639 from griggt/cb-cats-effect-stack
2 parents e834186 + 386006d commit 3cc191b

File tree

12 files changed

+131
-16
lines changed

12 files changed

+131
-16
lines changed

.gitmodules

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,24 @@
120120
[submodule "community-build/community-projects/verify"]
121121
path = community-build/community-projects/verify
122122
url = https://github.com/dotty-staging/nanotest-strawman.git
123+
[submodule "community-build/community-projects/discipline"]
124+
path = community-build/community-projects/discipline
125+
url = https://github.com/dotty-staging/discipline.git
126+
[submodule "community-build/community-projects/discipline-munit"]
127+
path = community-build/community-projects/discipline-munit
128+
url = https://github.com/dotty-staging/discipline-munit.git
129+
[submodule "community-build/community-projects/discipline-specs2"]
130+
path = community-build/community-projects/discipline-specs2
131+
url = https://github.com/dotty-staging/discipline-specs2.git
132+
[submodule "community-build/community-projects/simulacrum-scalafix"]
133+
path = community-build/community-projects/simulacrum-scalafix
134+
url = https://github.com/dotty-staging/simulacrum-scalafix.git
135+
[submodule "community-build/community-projects/cats"]
136+
path = community-build/community-projects/cats
137+
url = https://github.com/dotty-staging/cats.git
138+
[submodule "community-build/community-projects/cats-mtl"]
139+
path = community-build/community-projects/cats-mtl
140+
url = https://github.com/dotty-staging/cats-mtl.git
141+
[submodule "community-build/community-projects/coop"]
142+
path = community-build/community-projects/coop
143+
url = https://github.com/dotty-staging/coop.git
Submodule cats added at 2c27eb8
Submodule cats-effect-2 updated 62 files
Submodule cats-mtl added at 5b5dd28
Submodule coop added at d3bcd36
Submodule discipline added at 4e3f967

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 86 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,17 @@ def exec(projectDir: Path, binary: String, arguments: String*): Int =
3434
* projects to output the version number to a file.
3535
*/
3636
object Versions:
37+
val cats = "2.3.1-SNAPSHOT"
38+
val catsMtl = "1.1+DOTTY-SNAPSHOT"
39+
val coop = "1.0+DOTTY-SNAPSHOT"
40+
val discipline = "1.1.3-SNAPSHOT"
41+
val disciplineMunit = "1.0.3+DOTTY-SNAPSHOT"
42+
val disciplineSpecs2 = "1.1.3-SNAPSHOT"
3743
val scalacheck = "1.15.2-SNAPSHOT"
3844
val scalatest = "3.2.3"
3945
val munit = "0.7.19+DOTTY-SNAPSHOT"
4046
val scodecBits = "1.1+DOTTY-SNAPSHOT"
47+
val simulacrumScalafix = "0.5.1-SNAPSHOT"
4148

4249
sealed trait CommunityProject:
4350
private var published = false
@@ -114,6 +121,32 @@ final case class SbtCommunityProject(
114121
s""""org.scalameta" %% "junit-interface" % "${Versions.munit}"""",
115122
s""""org.scodec" %% "scodec-bits" % "${Versions.scodecBits}"""",
116123
s""""org.scodec" %% "scodec-bits_sjs1" % "${Versions.scodecBits}"""",
124+
s""""org.typelevel" %% "discipline-core" % "${Versions.discipline}"""",
125+
s""""org.typelevel" %% "discipline-core_sjs1" % "${Versions.discipline}"""",
126+
s""""org.typelevel" %% "discipline-munit" % "${Versions.disciplineMunit}"""",
127+
s""""org.typelevel" %% "discipline-munit_sjs1" % "${Versions.disciplineMunit}"""",
128+
s""""org.typelevel" %% "discipline-specs2" % "${Versions.disciplineSpecs2}"""",
129+
s""""org.typelevel" %% "discipline-specs2_sjs1" % "${Versions.disciplineSpecs2}"""",
130+
s""""org.typelevel" %% "simulacrum-scalafix-annotations" % "${Versions.simulacrumScalafix}"""",
131+
s""""org.typelevel" %% "simulacrum-scalafix-annotations_sjs1" % "${Versions.simulacrumScalafix}"""",
132+
s""""org.typelevel" %% "cats-core" % "${Versions.cats}"""",
133+
s""""org.typelevel" %% "cats-core_sjs1" % "${Versions.cats}"""",
134+
s""""org.typelevel" %% "cats-free" % "${Versions.cats}"""",
135+
s""""org.typelevel" %% "cats-free_sjs1" % "${Versions.cats}"""",
136+
s""""org.typelevel" %% "cats-kernel" % "${Versions.cats}"""",
137+
s""""org.typelevel" %% "cats-kernel_sjs1" % "${Versions.cats}"""",
138+
s""""org.typelevel" %% "cats-kernel-laws" % "${Versions.cats}"""",
139+
s""""org.typelevel" %% "cats-kernel-laws_sjs1" % "${Versions.cats}"""",
140+
s""""org.typelevel" %% "cats-laws" % "${Versions.cats}"""",
141+
s""""org.typelevel" %% "cats-laws_sjs1" % "${Versions.cats}"""",
142+
s""""org.typelevel" %% "cats-testkit" % "${Versions.cats}"""",
143+
s""""org.typelevel" %% "cats-testkit_sjs1" % "${Versions.cats}"""",
144+
s""""org.typelevel" %% "cats-mtl" % "${Versions.catsMtl}"""",
145+
s""""org.typelevel" %% "cats-mtl_sjs1" % "${Versions.catsMtl}"""",
146+
s""""org.typelevel" %% "cats-mtl-laws" % "${Versions.catsMtl}"""",
147+
s""""org.typelevel" %% "cats-mtl-laws_sjs1" % "${Versions.catsMtl}"""",
148+
s""""org.typelevel" %% "coop" % "${Versions.coop}"""",
149+
s""""org.typelevel" %% "coop_sjs1" % "${Versions.coop}"""",
117150
)
118151

119152
private val baseCommand =
@@ -425,15 +458,15 @@ object projects:
425458
lazy val catsEffect2 = SbtCommunityProject(
426459
project = "cats-effect-2",
427460
sbtTestCommand = "test",
428-
// Currently is excluded from community build
429-
// sbtDocCommand = ";coreJVM/doc ;lawsJVM/doc",
461+
sbtDocCommand = ";coreJVM/doc ;lawsJVM/doc",
462+
dependencies = List(cats, disciplineMunit)
430463
)
431464

432465
lazy val catsEffect3 = SbtCommunityProject(
433466
project = "cats-effect-3",
434-
sbtTestCommand = "testIfRelevant",
435-
// The problem is that testIfRelevant does not compile and project does not compile
436-
// sbtDocCommand = ";coreJVM/doc ;lawsJVM/doc ;kernelJVM/doc",
467+
sbtTestCommand = "test",
468+
sbtDocCommand = ";coreJVM/doc ;lawsJVM/doc ;kernelJVM/doc",
469+
dependencies = List(cats, coop, disciplineSpecs2, scalacheck)
437470
)
438471

439472
lazy val scalaParallelCollections = SbtCommunityProject(
@@ -454,6 +487,54 @@ object projects:
454487
sbtDocCommand = "verifyJVM/doc",
455488
)
456489

490+
lazy val discipline = SbtCommunityProject(
491+
project = "discipline",
492+
sbtTestCommand = "coreJVM/test;coreJS/test",
493+
sbtPublishCommand = "set every credentials := Nil;coreJVM/publishLocal;coreJS/publishLocal",
494+
dependencies = List(scalacheck)
495+
)
496+
497+
lazy val disciplineMunit = SbtCommunityProject(
498+
project = "discipline-munit",
499+
sbtTestCommand = "test",
500+
sbtPublishCommand = s"""set every version := "${Versions.disciplineMunit}";coreJVM/publishLocal;coreJS/publishLocal""",
501+
dependencies = List(discipline, munit)
502+
)
503+
504+
lazy val disciplineSpecs2 = SbtCommunityProject(
505+
project = "discipline-specs2",
506+
sbtTestCommand = "test",
507+
sbtPublishCommand = "coreJVM/publishLocal;coreJS/publishLocal",
508+
dependencies = List(discipline)
509+
)
510+
511+
lazy val simulacrumScalafixAnnotations = SbtCommunityProject(
512+
project = "simulacrum-scalafix",
513+
sbtTestCommand = "annotation/test:compile;annotationJS/test:compile",
514+
sbtPublishCommand = "annotation/publishLocal;annotationJS/publishLocal",
515+
)
516+
517+
lazy val cats = SbtCommunityProject(
518+
project = "cats",
519+
sbtTestCommand = "set scalaJSStage in Global := FastOptStage;buildJVM;validateAllJS",
520+
sbtPublishCommand = "catsJVM/publishLocal;catsJS/publishLocal",
521+
dependencies = List(discipline, disciplineMunit, scalacheck, simulacrumScalafixAnnotations)
522+
)
523+
524+
lazy val catsMtl = SbtCommunityProject(
525+
project = "cats-mtl",
526+
sbtTestCommand = "testsJVM/test;testsJS/test",
527+
sbtPublishCommand = s"""set every version := "${Versions.catsMtl}";coreJVM/publishLocal;coreJS/publishLocal;lawsJVM/publishLocal;lawsJS/publishLocal""",
528+
dependencies = List(cats, disciplineMunit)
529+
)
530+
531+
lazy val coop = SbtCommunityProject(
532+
project = "coop",
533+
sbtTestCommand = "test",
534+
sbtPublishCommand = s"""set every version := "${Versions.coop}";coreJVM/publishLocal;coreJS/publishLocal""",
535+
dependencies = List(cats, catsMtl)
536+
)
537+
457538
end projects
458539

459540
def allProjects = projects.fields.of[CommunityProject].sortBy(_.project)

community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ end CommunityBuildTest
8282

8383
@Category(Array(classOf[TestCategory]))
8484
class CommunityBuildTestA extends CommunityBuildTest:
85+
@Test def endpoints4s = projects.endpoints4s.run()
8586
@Test def fansi = projects.fansi.run()
8687
@Test def fastparse = projects.fastparse.run()
8788
@Test def geny = projects.geny.run()
@@ -90,44 +91,49 @@ class CommunityBuildTestA extends CommunityBuildTest:
9091
@Test def pprint = projects.pprint.run()
9192
@Test def requests = projects.requests.run()
9293
@Test def scalacheck = projects.scalacheck.run()
94+
@Test def scalaCollectionCompat = projects.scalaCollectionCompat.run()
95+
@Test def scalaParallelCollections = projects.scalaParallelCollections.run()
9396
@Test def scalatest = projects.scalatest.run()
9497
@Test def scalatestplusScalacheck = projects.scalatestplusScalacheck.run()
98+
@Test def scalaz = projects.scalaz.run()
9599
@Test def sourcecode = projects.sourcecode.run()
100+
@Test def stdLib213 = projects.stdLib213.run()
96101
@Test def ujson = projects.ujson.run()
97102
@Test def upickle = projects.upickle.run()
98103
@Test def utest = projects.utest.run()
104+
@Test def zio = projects.zio.run()
99105
end CommunityBuildTestA
100106

101107
@Category(Array(classOf[TestCategory]))
102108
class CommunityBuildTestB extends CommunityBuildTest:
103109
@Test def algebra = projects.algebra.run()
104110
@Test def betterfiles = projects.betterfiles.run()
105-
// temporarily disabled due to lampepfl/dotty#10478
106-
//@Test def catsEffect2 = projects.catsEffect2.run()
107-
//@Test def catsEffect3 = projects.catsEffect3.run()
111+
@Test def cats = projects.cats.run()
112+
@Test def catsEffect2 = projects.catsEffect2.run()
113+
@Test def catsEffect3 = projects.catsEffect3.run()
114+
@Test def catsMtl = projects.catsMtl.run()
115+
@Test def coop = projects.coop.run()
116+
@Test def discipline = projects.discipline.run()
117+
@Test def disciplineMunit = projects.disciplineMunit.run()
118+
@Test def disciplineSpecs2 = projects.disciplineSpecs2.run()
108119
// Temporarily disabled until problem discovered in comments to #9449 is fixed
109120
// @Test def dottyCpsAsync = projects.dottyCpsAsync.run()
110121
@Test def effpi = projects.effpi.run()
111-
@Test def endpoints4s = projects.endpoints4s.run()
112122
@Test def intent = projects.intent.run()
113123
@Test def minitest = projects.minitest.run()
114124
@Test def munit = projects.munit.run()
115125
@Test def scodec = projects.scodec.run()
116126
@Test def scodecBits = projects.scodecBits.run()
117127
@Test def scalap = projects.scalap.run()
118-
@Test def scalaCollectionCompat = projects.scalaCollectionCompat.run()
119-
@Test def scalaParallelCollections = projects.scalaParallelCollections.run()
120128
@Test def scalaParserCombinators = projects.scalaParserCombinators.run()
121129
@Test def ScalaPB = projects.ScalaPB.run()
122130
@Test def scalaXml = projects.scalaXml.run()
123-
@Test def scalaz = projects.scalaz.run()
124131
@Test def scas = projects.scas.run()
125132
@Test def sconfig = projects.sconfig.run()
126133
@Test def shapeless = projects.shapeless.run()
127-
@Test def stdLib213 = projects.stdLib213.run()
134+
@Test def simulacrumScalafixAnnotations = projects.simulacrumScalafixAnnotations.run()
128135
@Test def verify = projects.verify.run()
129136
@Test def xmlInterpolator = projects.xmlInterpolator.run()
130-
@Test def zio = projects.zio.run()
131137
end CommunityBuildTestB
132138

133139
class TestCategory

0 commit comments

Comments
 (0)