//===----------------------------------------------------------------------===// // Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved. // // 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 // // https://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. //===----------------------------------------------------------------------===// abstract module GradleJob import "package://pkg.pkl-lang.org/pkl-pantry/com.circleci.v2@1.1.2#/Config.pkl" /// Whether this is a release build or not. isRelease: Boolean = false /// The OS to run on os: "macOS"|"linux"|"windows" fixed gradleArgs = new Listing { "--info" "--stacktrace" "-DtestReportsDir=${HOME}/test-results" when (isRelease) { "-DreleaseBuild=true" } }.join(" ") steps: Listing job: Config.Job = new { environment { ["LANG"] = "en_US.UTF-8" } steps { "checkout" ...module.steps new Config.StoreTestResults { path = "~/test-results" } } }