Skip to content

Commit

Permalink
Try enabling PTS for non-CI builds (#5324)
Browse files Browse the repository at this point in the history
Motivation:

We may be able to increase build speeds locally if we enable PTS for
non-CI builds

Modifications:

- Added a PTS setting for tests if the CI field is not set
-
https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables

Result:

- Faster local builds

<!--
Visit this URL to learn more about how to write a pull request
description:

https://armeria.dev/community/developer-guide#how-to-write-pull-request-description
-->
  • Loading branch information
jrhee17 authored Dec 7, 2023
1 parent 7d9d101 commit 806a21c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ gradle.buildFinished({ result ->
}
})

def isCi = System.getenv("CI") != null
allprojects {
// Add common JVM options such as max memory and leak detection.
tasks.withType(JavaForkOptions) {
Expand Down Expand Up @@ -124,6 +125,10 @@ allprojects {
failOnPassedAfterRetry = rootProject.findProperty('failOnPassedAfterRetry') != 'false'
}
}

predictiveSelection {
enabled.set(!isCi)
}
}
}

Expand Down

0 comments on commit 806a21c

Please sign in to comment.