Skip to content

Commit 8a60b77

Browse files
committed
Add perspective to the community build
1 parent 33ece58 commit 8a60b77

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,7 @@
177177
[submodule "community-build/community-projects/izumi-reflect"]
178178
path = community-build/community-projects/izumi-reflect
179179
url = https://github.com/dotty-staging/izumi-reflect.git
180+
[submodule "community-build/community-projects/perspective"]
181+
path = community-build/community-projects/perspective
182+
url = https://github.com/dotty-staging/perspective.git
183+
branch = dotty/nightly
Submodule perspective added at f0525cd

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,14 @@ object projects:
627627
sbtPublishCommand = "publishLocal",
628628
dependencies = List(scalatest)
629629
)
630+
631+
lazy val perspective = SbtCommunityProject(
632+
project = "perspective",
633+
// No library with easy typeclasses to verify data against exist for Dotty, so no tests yet
634+
// Until then I guess this mainly serves to check that it still compiles at all
635+
sbtTestCommand = "dottyPerspectiveExamples/compile",
636+
dependencies = List(cats)
637+
)
630638

631639
end projects
632640

@@ -691,6 +699,7 @@ def allProjects = List(
691699
projects.scalaSTM,
692700
projects.scissLucre,
693701
projects.izumiReflect,
702+
projects.perspective,
694703
)
695704

696705
lazy val projectMap = allProjects.map(p => p.project -> p).toMap

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class CommunityBuildTestB extends CommunityBuildTest:
148148
@Test def simulacrumScalafixAnnotations = projects.simulacrumScalafixAnnotations.run()
149149
@Test def verify = projects.verify.run()
150150
@Test def xmlInterpolator = projects.xmlInterpolator.run()
151+
@Test def perspective = projects.perspective.run()
151152

152153
end CommunityBuildTestB
153154

0 commit comments

Comments
 (0)