Skip to content

Commit 495dec8

Browse files
committed
community build: Add discipline-munit
This is a dependency of cats and cats-effect-2
1 parent 3a5afe6 commit 495dec8

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
@@ -123,3 +123,6 @@
123123
[submodule "community-build/community-projects/discipline"]
124124
path = community-build/community-projects/discipline
125125
url = https://github.com/typelevel/discipline.git
126+
[submodule "community-build/community-projects/discipline-munit"]
127+
path = community-build/community-projects/discipline-munit
128+
url = https://github.com/typelevel/discipline-munit.git

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def exec(projectDir: Path, binary: String, arguments: String*): Int =
3535
*/
3636
object Versions:
3737
val discipline = "1.1.3-SNAPSHOT"
38+
val disciplineMunit = "1.0.3+DOTTY-SNAPSHOT"
3839
val scalacheck = "1.15.2-SNAPSHOT"
3940
val scalatest = "3.2.3"
4041
val munit = "0.7.19+DOTTY-SNAPSHOT"
@@ -117,6 +118,8 @@ final case class SbtCommunityProject(
117118
s""""org.scodec" %% "scodec-bits_sjs1" % "${Versions.scodecBits}"""",
118119
s""""org.typelevel" %% "discipline-core" % "${Versions.discipline}"""",
119120
s""""org.typelevel" %% "discipline-core_sjs1" % "${Versions.discipline}"""",
121+
s""""org.typelevel" %% "discipline-munit" % "${Versions.disciplineMunit}"""",
122+
s""""org.typelevel" %% "discipline-munit_sjs1" % "${Versions.disciplineMunit}"""",
120123
)
121124

122125
private val baseCommand =
@@ -465,6 +468,13 @@ object projects:
465468
dependencies = List(scalacheck)
466469
)
467470

471+
lazy val disciplineMunit = SbtCommunityProject(
472+
project = "discipline-munit",
473+
sbtTestCommand = "test",
474+
sbtPublishCommand = s"""set every version := "${Versions.disciplineMunit}";coreJVM/publishLocal;coreJS/publishLocal""",
475+
dependencies = List(discipline, munit)
476+
)
477+
468478
end projects
469479

470480
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
@@ -106,6 +106,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
106106
//@Test def catsEffect2 = projects.catsEffect2.run()
107107
//@Test def catsEffect3 = projects.catsEffect3.run()
108108
@Test def discipline = projects.discipline.run()
109+
@Test def disciplineMunit = projects.disciplineMunit.run()
109110
// Temporarily disabled until problem discovered in comments to #9449 is fixed
110111
// @Test def dottyCpsAsync = projects.dottyCpsAsync.run()
111112
@Test def effpi = projects.effpi.run()

0 commit comments

Comments
 (0)