This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update list of supported gradle versions (#33)
Description =========== This pull requests adds a simple test script to check with the help of integration tests which Gradle version works. I also did some changes in the test setup to make these tests possible. Changes ======= ![UPDATE] supported gradle versions list
- Loading branch information
Showing
6 changed files
with
65 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
versions=("3.0" "3.1" "3.2" "3.4" "3.4.1" "3.5" "3.5.1" "4.0" "4.1" "4.2" "4.3" "4.4" "4.5" "4.6") | ||
for i in "${versions[@]}" | ||
do | ||
echo "test gradle version $i" | ||
GRADLE_VERSION=$i ./gradlew integrationTest &> /dev/null | ||
status=$? | ||
mkdir -p "build/reports/$i" | ||
mv build/reports/integrationTest "build/reports/$i" | ||
if [ $status -ne 0 ]; then | ||
echo "test error $i" | ||
fi | ||
done |
29 changes: 29 additions & 0 deletions
29
src/integrationTest/groovy/wooga/gradle/paket/IntegrationSpec.groovy
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,29 @@ | ||
/* | ||
* Copyright 2017 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package wooga.gradle.paket | ||
|
||
class IntegrationSpec extends nebula.test.IntegrationSpec{ | ||
|
||
def setup() { | ||
def gradleVersion = System.getenv("GRADLE_VERSION") | ||
if (gradleVersion) { | ||
this.gradleVersion = gradleVersion | ||
fork = true | ||
} | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
src/integrationTest/groovy/wooga/gradle/paket/PaketIntegrationArgumentsSpec.groovy
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