Skip to content

Commit 79003fc

Browse files
committed
community build: Add discipline-specs2
This is a dependency of cats-effect-3
1 parent 495dec8 commit 79003fc

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,6 @@
126126
[submodule "community-build/community-projects/discipline-munit"]
127127
path = community-build/community-projects/discipline-munit
128128
url = https://github.com/typelevel/discipline-munit.git
129+
[submodule "community-build/community-projects/discipline-specs2"]
130+
path = community-build/community-projects/discipline-specs2
131+
url = https://github.com/typelevel/discipline-specs2.git

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def exec(projectDir: Path, binary: String, arguments: String*): Int =
3636
object Versions:
3737
val discipline = "1.1.3-SNAPSHOT"
3838
val disciplineMunit = "1.0.3+DOTTY-SNAPSHOT"
39+
val disciplineSpecs2 = "1.1.3-SNAPSHOT"
3940
val scalacheck = "1.15.2-SNAPSHOT"
4041
val scalatest = "3.2.3"
4142
val munit = "0.7.19+DOTTY-SNAPSHOT"
@@ -120,6 +121,8 @@ final case class SbtCommunityProject(
120121
s""""org.typelevel" %% "discipline-core_sjs1" % "${Versions.discipline}"""",
121122
s""""org.typelevel" %% "discipline-munit" % "${Versions.disciplineMunit}"""",
122123
s""""org.typelevel" %% "discipline-munit_sjs1" % "${Versions.disciplineMunit}"""",
124+
s""""org.typelevel" %% "discipline-specs2" % "${Versions.disciplineSpecs2}"""",
125+
s""""org.typelevel" %% "discipline-specs2_sjs1" % "${Versions.disciplineSpecs2}"""",
123126
)
124127

125128
private val baseCommand =
@@ -475,6 +478,13 @@ object projects:
475478
dependencies = List(discipline, munit)
476479
)
477480

481+
lazy val disciplineSpecs2 = SbtCommunityProject(
482+
project = "discipline-specs2",
483+
sbtTestCommand = "test",
484+
sbtPublishCommand = "coreJVM/publishLocal;coreJS/publishLocal",
485+
dependencies = List(discipline)
486+
)
487+
478488
end projects
479489

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
107107
//@Test def catsEffect3 = projects.catsEffect3.run()
108108
@Test def discipline = projects.discipline.run()
109109
@Test def disciplineMunit = projects.disciplineMunit.run()
110+
@Test def disciplineSpecs2 = projects.disciplineSpecs2.run()
110111
// Temporarily disabled until problem discovered in comments to #9449 is fixed
111112
// @Test def dottyCpsAsync = projects.dottyCpsAsync.run()
112113
@Test def effpi = projects.effpi.run()

0 commit comments

Comments
 (0)