-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashes in the absence of a git repo.
* 'releaseVersion' now resilient against missing git repo. * Added Scripted plugin tests for 'compileDocs' and 'installWebsite'. * Fixed bad 'rm -rvf' command, flags were in the wrong place.
- Loading branch information
1 parent
6fd7d64
commit 2b426ed
Showing
17 changed files
with
98 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
zio-sbt-website/src/sbt-test/zio-sbt-website/compileDocs/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
lazy val root = (project in file(".")) | ||
.settings( | ||
version := "0.1", | ||
).enablePlugins(WebsitePlugin) |
7 changes: 7 additions & 0 deletions
7
zio-sbt-website/src/sbt-test/zio-sbt-website/compileDocs/docs/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
id: index | ||
title: "Introduction to ZIO SBT" | ||
sidebar_label: "Introduction" | ||
--- | ||
|
||
SBT Plugin for ZIO Projects. |
5 changes: 5 additions & 0 deletions
5
zio-sbt-website/src/sbt-test/zio-sbt-website/compileDocs/docs/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "@zio.dev/zio-sbt", | ||
"description": "ZIO SBT Documentation", | ||
"license": "Apache-2.0" | ||
} |
7 changes: 7 additions & 0 deletions
7
zio-sbt-website/src/sbt-test/zio-sbt-website/compileDocs/docs/sidebar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const sidebars = { | ||
sidebar: [ | ||
'index' | ||
] | ||
}; | ||
|
||
module.exports = sidebars; |
5 changes: 5 additions & 0 deletions
5
zio-sbt-website/src/sbt-test/zio-sbt-website/compileDocs/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sys.props.get("plugin.version") match { | ||
case Some(x) => addSbtPlugin("dev.zio" % "zio-sbt-website" % x) | ||
case _ => sys.error("""|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin) | ||
} |
3 changes: 3 additions & 0 deletions
3
zio-sbt-website/src/sbt-test/zio-sbt-website/compileDocs/src/main/scala/Main.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
object Main { | ||
def main(args: Array[String]): Unit = println("hello, zio") | ||
} |
8 changes: 8 additions & 0 deletions
8
zio-sbt-website/src/sbt-test/zio-sbt-website/compileDocs/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
> clean | ||
> compile | ||
> compileDocs | ||
$ exists target/website/docs | ||
$ exists target/website/docs/index.md | ||
$ exists target/website/docs/package.json | ||
$ exists target/website/docs/sidebar.js | ||
|
4 changes: 4 additions & 0 deletions
4
zio-sbt-website/src/sbt-test/zio-sbt-website/installWebsite/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
lazy val root = (project in file(".")) | ||
.settings( | ||
version := "0.1", | ||
).enablePlugins(WebsitePlugin) |
7 changes: 7 additions & 0 deletions
7
zio-sbt-website/src/sbt-test/zio-sbt-website/installWebsite/docs/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
id: index | ||
title: "Introduction to ZIO SBT" | ||
sidebar_label: "Introduction" | ||
--- | ||
|
||
SBT Plugin for ZIO Projects. |
5 changes: 5 additions & 0 deletions
5
zio-sbt-website/src/sbt-test/zio-sbt-website/installWebsite/docs/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "@zio.dev/zio-sbt", | ||
"description": "ZIO SBT Documentation", | ||
"license": "Apache-2.0" | ||
} |
7 changes: 7 additions & 0 deletions
7
zio-sbt-website/src/sbt-test/zio-sbt-website/installWebsite/docs/sidebar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const sidebars = { | ||
sidebar: [ | ||
'index' | ||
] | ||
}; | ||
|
||
module.exports = sidebars; |
5 changes: 5 additions & 0 deletions
5
zio-sbt-website/src/sbt-test/zio-sbt-website/installWebsite/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sys.props.get("plugin.version") match { | ||
case Some(x) => addSbtPlugin("dev.zio" % "zio-sbt-website" % x) | ||
case _ => sys.error("""|The system property 'plugin.version' is not defined. | ||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin) | ||
} |
3 changes: 3 additions & 0 deletions
3
zio-sbt-website/src/sbt-test/zio-sbt-website/installWebsite/src/main/scala/Main.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
object Main { | ||
def main(args: Array[String]): Unit = println("hello, zio") | ||
} |
5 changes: 5 additions & 0 deletions
5
zio-sbt-website/src/sbt-test/zio-sbt-website/installWebsite/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
> clean | ||
> installWebsite | ||
$ exists target/website/src | ||
$ exists target/website/static | ||
$ exists target/website/LICENSE |