From 8a60b77ed5d3ae249959bd27994b2a8251a6f315 Mon Sep 17 00:00:00 2001 From: Katrix Date: Fri, 5 Feb 2021 01:15:32 +0100 Subject: [PATCH] Add perspective to the community build --- .gitmodules | 4 ++++ community-build/community-projects/perspective | 1 + .../src/scala/dotty/communitybuild/projects.scala | 9 +++++++++ .../scala/dotty/communitybuild/CommunityBuildTest.scala | 1 + 4 files changed, 15 insertions(+) create mode 160000 community-build/community-projects/perspective diff --git a/.gitmodules b/.gitmodules index a6e92e961cf1..707869478138 100644 --- a/.gitmodules +++ b/.gitmodules @@ -177,3 +177,7 @@ [submodule "community-build/community-projects/izumi-reflect"] path = community-build/community-projects/izumi-reflect url = https://github.com/dotty-staging/izumi-reflect.git +[submodule "community-build/community-projects/perspective"] + path = community-build/community-projects/perspective + url = https://github.com/dotty-staging/perspective.git + branch = dotty/nightly diff --git a/community-build/community-projects/perspective b/community-build/community-projects/perspective new file mode 160000 index 000000000000..f0525cdc94a5 --- /dev/null +++ b/community-build/community-projects/perspective @@ -0,0 +1 @@ +Subproject commit f0525cdc94a52e92587a464761741369f3351345 diff --git a/community-build/src/scala/dotty/communitybuild/projects.scala b/community-build/src/scala/dotty/communitybuild/projects.scala index 359411e216d7..4e4649caed1a 100644 --- a/community-build/src/scala/dotty/communitybuild/projects.scala +++ b/community-build/src/scala/dotty/communitybuild/projects.scala @@ -627,6 +627,14 @@ object projects: sbtPublishCommand = "publishLocal", dependencies = List(scalatest) ) + + lazy val perspective = SbtCommunityProject( + project = "perspective", + // No library with easy typeclasses to verify data against exist for Dotty, so no tests yet + // Until then I guess this mainly serves to check that it still compiles at all + sbtTestCommand = "dottyPerspectiveExamples/compile", + dependencies = List(cats) + ) end projects @@ -691,6 +699,7 @@ def allProjects = List( projects.scalaSTM, projects.scissLucre, projects.izumiReflect, + projects.perspective, ) lazy val projectMap = allProjects.map(p => p.project -> p).toMap diff --git a/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala b/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala index 0154369438a6..d8a0c9f57f8d 100644 --- a/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala +++ b/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala @@ -148,6 +148,7 @@ class CommunityBuildTestB extends CommunityBuildTest: @Test def simulacrumScalafixAnnotations = projects.simulacrumScalafixAnnotations.run() @Test def verify = projects.verify.run() @Test def xmlInterpolator = projects.xmlInterpolator.run() + @Test def perspective = projects.perspective.run() end CommunityBuildTestB