Skip to content

Commit

Permalink
Disable daemon for remote builds (#2281)
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitagarwal1612 authored Mar 1, 2024
1 parent 3dcff36 commit 2b18cbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ steps:
args:
- '-c'
- |
./gradlew -PdisablePreDex assembleDevStaging assembleDevStagingUnitTest -PtestBuildType=staging
./gradlew -PdisablePreDex assembleDevStaging assembleDevStagingUnitTest -PtestBuildType=staging --no-daemon
# TODO(#1547): Re-enable once instrumentation tests are fixed.
# if [[ "${_PUSH_TO_MASTER}" ]]; then
Expand All @@ -100,11 +100,11 @@ steps:
args:
- '-c'
- |
./gradlew -PdisablePreDex checkCode 2> check-logs.txt || echo "fail" > build-status.txt
./gradlew -PdisablePreDex checkCode --no-daemon 2> check-logs.txt || echo "fail" > build-status.txt
cat check-logs.txt
if [[ "${_PUSH_TO_MASTER}" ]]; then
./gradlew -PdisablePreDex dependencyUpdates
./gradlew -PdisablePreDex dependencyUpdates --no-daemon
fi
- name: 'gcr.io/$PROJECT_ID/android:34'
Expand All @@ -114,11 +114,11 @@ steps:
args:
- '-c'
- |
./gradlew -PdisablePreDex testDevStagingUnitTest 2> unit-test-logs.txt || echo "fail" > build-status.txt
./gradlew -PdisablePreDex testDevStagingUnitTest --no-daemon 2> unit-test-logs.txt || echo "fail" > build-status.txt
cat unit-test-logs.txt
# TODO: Add a check for _PUSH_TO_MASTER
./gradlew jacocoTestStagingUnitTestReport
./gradlew jacocoTestStagingUnitTestReport --no-daemon
- name: 'gcr.io/$PROJECT_ID/android:34'
id: &authenticate_gcloud 'Authorize gcloud'
Expand Down

0 comments on commit 2b18cbf

Please sign in to comment.