-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a setting to handle non v-prefixed tags (#108)
Add a setting to handle non v-prefixed tags
- Loading branch information
Showing
5 changed files
with
60 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package sbtdynver | ||
|
||
import org.scalacheck._, Prop._ | ||
|
||
object TagPatternVersionSpec extends Properties("TagPatternVersionSpec") { | ||
val repoStates = new RepoStates(vTagPrefix = false) | ||
import repoStates._ | ||
|
||
property("not a git repo") = notAGitRepo().version() ?= "HEAD+20160917-0000" | ||
property("no commits") = noCommits().version() ?= "HEAD+20160917-0000" | ||
property("on commit, w/o local changes") = onCommit().version() ?= "0.0.0+3-1234abcd" | ||
property("on commit with local changes") = onCommitDirty().version() ?= "0.0.0+3-1234abcd+20160917-0000" | ||
property("on tag 1.0.0, w/o local changes") = onTag().version() ?= "1.0.0" | ||
property("on tag 1.0.0 with local changes") = onTagDirty().version() ?= "1.0.0+0-1234abcd+20160917-0000" | ||
property("on tag 1.0.0 and 1 commit, w/o local changes") = onTagAndCommit().version() ?= "1.0.0+1-1234abcd" | ||
property("on tag 1.0.0 and 1 commit with local changes") = onTagAndCommitDirty().version() ?= "1.0.0+1-1234abcd+20160917-0000" | ||
} |