Skip to content

Commit

Permalink
Add gradle version support tests (#1)
Browse files Browse the repository at this point in the history
Add gradle version test to `ReleasePluginIntegrationSpec`

Document supported versions in README
  • Loading branch information
Larusso authored Jun 27, 2017
1 parent 1dbc992 commit 417d937
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 31 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ Gradle and Java Compatibility
Built with Oracle JDK7
Tested with Oracle JDK8

| Gradle Version | Works |
| :------------: | :---: |
| 3.4.1 | yes |
| 3.5 | yes |
| Gradle Version | Works |
| :------------- | :---------: |
| <= 2.13 | ![no] |
| 2.14 | ![yes] |
| 3.0 | ![yes] |
| 3.1 | ![yes] |
| 3.2 | ![yes] |
| 3.4 | ![yes] |
| 3.4.1 | ![yes] |
| 3.5 | ![yes] |
| 3.5.1 | ![yes] |
| 4.0 | ![yes] |

LICENSE
=======
Expand All @@ -67,3 +75,6 @@ limitations under the License.
[visteg]: https://github.com/mmalohlava/gradle-visteg
[paket]: https://fsprojects.github.io/Paket/
[nuget]: https://www.nuget.org/

[yes]: http://atlas-resources.wooga.com/icons/icon_check.svg "yes"
[no]: http://atlas-resources.wooga.com/icons/icon_uncheck.svg "no"
27 changes: 0 additions & 27 deletions src/integrationTest/groovy/wooga/gradle/release/DummyTest.groovy

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,25 @@ class ReleasePluginIntegrationSpec extends IntegrationSpec {
then:
result.standardOutput.contains("unityPack NO-SOURCE")
}

def gradleVersions() {
["2.14", "3.0", "3.2", "3.4", "3.4.1", "3.5", "3.5.1", "4.0"]
}

@Unroll("verify plugin activation with gradle #gradleVersionToTest")
def "activates with multiple gradle versions"() {
given: "a buildfile with unity plugin applied"
buildFile << """
group = 'test'
${applyPlugin(ReleasePlugin)}
""".stripIndent()

gradleVersion = gradleVersionToTest

expect:
runTasksSuccessfully("tasks")

where:
gradleVersionToTest << gradleVersions()
}
}

0 comments on commit 417d937

Please sign in to comment.