Skip to content

Commit

Permalink
Allow excluding xmlschema from the configuration, and use that
Browse files Browse the repository at this point in the history
in automation. Xmlschema is not ready and the tests still fail.
  • Loading branch information
pdvrieze committed Jun 19, 2024
1 parent 7952fdf commit e68839c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-to-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:
uses: gradle/actions/setup-gradle@v3.3.2
- name: Check (macos / windows)
if: matrix.os != 'ubuntu-latest'
run: ./gradlew nativeTest --stacktrace
run: ./gradlew -PexcludeSchema nativeTest --stacktrace
shell: bash
- name: Check (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: ./gradlew check --stacktrace
run: ./gradlew -PexcludeSchema check --stacktrace
shell: bash
- name: Store reports
if: failure()
Expand All @@ -68,7 +68,7 @@ jobs:
**/build/test-results/
- name: Upload (macOs)
if: matrix.os == 'macOs-latest'
run: ./gradlew publish -Pxmlutil.repositoryId='${{ needs.create-staging-repository.outputs.repository_id }}' -Possrh.username='${{ secrets.OSSRH_USERNAME }}' -Possrh.password='${{ secrets.OSSRH_PASSWORD }}' -Pnative.deploy=all --stacktrace
run: ./gradlew -PexcludeSchema publish -Pxmlutil.repositoryId='${{ needs.create-staging-repository.outputs.repository_id }}' -Possrh.username='${{ secrets.OSSRH_USERNAME }}' -Possrh.password='${{ secrets.OSSRH_PASSWORD }}' -Pnative.deploy=all --stacktrace
shell: bash

drop-on-failure:
Expand Down
21 changes: 12 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@ trigger:
pool:
vmImage: 'ubuntu-latest'

strategy:
matrix:
# jdk11:
# jdk_version: "1.11"
jdk17:
jdk_version: "1.17"
maxParallel: 2
#strategy:
# matrix:
## jdk11:
## jdk_version: "1.11"
# jdk17:
# jdk_version: "1.17"
# maxParallel: 2

steps:
- task: Gradle@2
- checkout: self
submodules: true
- task: Gradle@3
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx2048m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: $(jdk_version)
jdkVersionOption: "1.17"
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'build'
options: '-PexcludeSchema'
8 changes: 7 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ plugins {
id ("com.gradle.enterprise") version "3.1.1"
}

val includeSchema = providers.gradleProperty("excludeSchema").map {
it.lowercase() == "false"
}.getOrElse(true)

rootProject.name = "xmlutil"

include(":serialutil")
Expand All @@ -61,7 +65,9 @@ include(":serialization")
include(":xmlserializable")
include(":testutil")
include(":examples")
include(":xmlschema")
if (includeSchema) {
include(":xmlschema")
}

project(":core").projectDir = file("core/base")
project(":coreJdk").projectDir = file("core/jdk")
Expand Down

0 comments on commit e68839c

Please sign in to comment.