Skip to content

Commit

Permalink
Merge pull request #1664 from DataDog/xgouchet/disable_warning_as_err…
Browse files Browse the repository at this point in the history
…ors_locally

Disable warning as errors locally
  • Loading branch information
xgouchet authored Oct 9, 2023
2 parents a340c76 + 42dfa24 commit b405b38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ fun Project.kotlinConfig(
taskConfig<KotlinCompile> {
compilerOptions {
jvmTarget.set(jvmBytecodeTarget)
allWarningsAsErrors.set(evaluateWarningsAsErrors)
val isCI = System.getenv("CI").toBoolean()
allWarningsAsErrors.set(evaluateWarningsAsErrors && isCI)
apiVersion.set(KotlinVersion.KOTLIN_1_7)
languageVersion.set(KotlinVersion.KOTLIN_1_7)
}
Expand Down
2 changes: 2 additions & 0 deletions local_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ANALYSIS=0
COMPILE=0
TEST=0
UPDATE_SESSION_REPLAY_PAYLOAD=0
export CI=true

while [[ $# -gt 0 ]]; do
case $1 in
Expand Down Expand Up @@ -187,4 +188,5 @@ if [[ $UPDATE_SESSION_REPLAY_PAYLOAD == 1 ]]; then
adb pull $PAYLOAD_INPUT_DIRECTORY_PATH $PAYLOAD_OUTPUT_DIRECTORY_PATH
fi

unset CI
echo "-- Done ✔︎"

0 comments on commit b405b38

Please sign in to comment.