From f515aab8d7c56333b93b211f99d06edee9f5f405 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Wed, 21 Aug 2019 08:54:58 -0700 Subject: [PATCH] Add scripted test for `~compile` in play --- sbt/src/sbt-test/plugins/play-watch/app/Controller.scala | 2 ++ sbt/src/sbt-test/plugins/play-watch/build.sbt | 3 +++ sbt/src/sbt-test/plugins/play-watch/project/plugins.sbt | 1 + sbt/src/sbt-test/plugins/play-watch/test | 1 + 4 files changed, 7 insertions(+) create mode 100644 sbt/src/sbt-test/plugins/play-watch/app/Controller.scala create mode 100644 sbt/src/sbt-test/plugins/play-watch/build.sbt create mode 100644 sbt/src/sbt-test/plugins/play-watch/project/plugins.sbt create mode 100644 sbt/src/sbt-test/plugins/play-watch/test diff --git a/sbt/src/sbt-test/plugins/play-watch/app/Controller.scala b/sbt/src/sbt-test/plugins/play-watch/app/Controller.scala new file mode 100644 index 000000000..d181c83af --- /dev/null +++ b/sbt/src/sbt-test/plugins/play-watch/app/Controller.scala @@ -0,0 +1,2 @@ +object Controller { +} \ No newline at end of file diff --git a/sbt/src/sbt-test/plugins/play-watch/build.sbt b/sbt/src/sbt-test/plugins/play-watch/build.sbt new file mode 100644 index 000000000..b66f88d87 --- /dev/null +++ b/sbt/src/sbt-test/plugins/play-watch/build.sbt @@ -0,0 +1,3 @@ +enablePlugins(PlayScala) + +watchOnIteration := { (_, _, _) => Watch.CancelWatch } diff --git a/sbt/src/sbt-test/plugins/play-watch/project/plugins.sbt b/sbt/src/sbt-test/plugins/play-watch/project/plugins.sbt new file mode 100644 index 000000000..05e01d6e5 --- /dev/null +++ b/sbt/src/sbt-test/plugins/play-watch/project/plugins.sbt @@ -0,0 +1 @@ +addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.3") \ No newline at end of file diff --git a/sbt/src/sbt-test/plugins/play-watch/test b/sbt/src/sbt-test/plugins/play-watch/test new file mode 100644 index 000000000..693209c25 --- /dev/null +++ b/sbt/src/sbt-test/plugins/play-watch/test @@ -0,0 +1 @@ +> ~compile