Skip to content

Commit 66b7872

Browse files
authored
Disables provisioning tests if environment variable is not set
1 parent f964084 commit 66b7872

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

cloudinary-http42/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ apply from: "../java_shared.gradle"
1111
task ciTest( type: Test ) {
1212
useJUnit {
1313
excludeCategories 'com.cloudinary.test.TimeoutTest'
14+
if (System.getProperty("CLOUDINARY_ACCOUNT_URL") == "") {
15+
exclude '**/AccountApiTest.class'
16+
}
1417
}
1518
}
1619

@@ -118,4 +121,4 @@ if (hasProperty("ossrhPassword")) {
118121
}
119122
}
120123
}
121-
}
124+
}

cloudinary-http43/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ apply from: "../java_shared.gradle"
1111
task ciTest( type: Test ) {
1212
useJUnit {
1313
excludeCategories 'com.cloudinary.test.TimeoutTest'
14+
if (System.getProperty("CLOUDINARY_ACCOUNT_URL") == "") {
15+
exclude '**/AccountApiTest.class'
16+
}
1417
}
1518
}
1619

@@ -117,4 +120,4 @@ if (hasProperty("ossrhPassword")) {
117120
}
118121
}
119122
}
120-
}
123+
}

cloudinary-http44/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ apply from: "../java_shared.gradle"
1111
task ciTest( type: Test ) {
1212
useJUnit {
1313
excludeCategories 'com.cloudinary.test.TimeoutTest'
14+
if (System.getProperty("CLOUDINARY_ACCOUNT_URL") == "") {
15+
exclude '**/AccountApiTest.class'
16+
}
1417
}
1518
}
1619

@@ -117,4 +120,4 @@ if (hasProperty("ossrhPassword")) {
117120
}
118121
}
119122
}
120-
}
123+
}

cloudinary-http45/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ apply from: "../java_shared.gradle"
1111
task ciTest( type: Test ) {
1212
useJUnit {
1313
excludeCategories 'com.cloudinary.test.TimeoutTest'
14+
if (System.getProperty("CLOUDINARY_ACCOUNT_URL") == "") {
15+
exclude '**/AccountApiTest.class'
16+
}
1417
}
1518
}
1619

@@ -117,4 +120,4 @@ if (hasProperty("ossrhPassword")) {
117120
}
118121
}
119122
}
120-
}
123+
}

0 commit comments

Comments
 (0)