Skip to content
Permalink
Browse files

Invoke build scan via build script

Rather than globally in the root build.gradle. Allows more fine-grained
application.
  • Loading branch information...
chrisbanes committed Nov 4, 2019
1 parent 0851ddd commit 06eb5c644bb8b381531a050e354ac326989c4dba
Showing with 4 additions and 5 deletions.
  1. +4 −4 .circleci/config.yml
  2. +0 −1 build.gradle
@@ -69,7 +69,7 @@ jobs:
command: ./gradlew dependencies
- run:
name: Assemble and Test APKs
command: ./gradlew bundleDebug assembleDebug -Ptivi.versioncode=$CIRCLE_BUILD_NUM
command: ./gradlew bundleDebug assembleDebug -Ptivi.versioncode=$CIRCLE_BUILD_NUM --scan
- <<: *clean_secrets
- <<: *save_cache
- store_artifacts:
@@ -87,7 +87,7 @@ jobs:
- <<: *restore_cache
- run:
name: Check app and dependencies
command: ./gradlew app:lintDebug testDebug spotlessCheck dependencyUpdates
command: ./gradlew app:lintDebug testDebug spotlessCheck dependencyUpdates --scan
- store_artifacts:
path: app/build/reports
destination: reports
@@ -116,7 +116,7 @@ jobs:
- <<: *decrypt_secrets
- run:
name: Check and assemble APKs
command: ./gradlew bundleRelease assembleRelease -Ptivi.versioncode=$CIRCLE_BUILD_NUM
command: ./gradlew bundleRelease assembleRelease -Ptivi.versioncode=$CIRCLE_BUILD_NUM --scan
- <<: *clean_secrets
- store_artifacts:
path: app/build/outputs
@@ -137,7 +137,7 @@ jobs:
- <<: *decrypt_secrets
- run:
name: Deploy to Alpha channel
command: ./gradlew publishRelease -Ptivi.versioncode=$CIRCLE_BUILD_NUM
command: ./gradlew publishRelease -Ptivi.versioncode=$CIRCLE_BUILD_NUM --scan
- <<: *clean_secrets

deploy_to_github_release:
@@ -70,7 +70,6 @@ allprojects {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
publishAlwaysIf(System.getenv("CI") == "true")
}

subprojects {

0 comments on commit 06eb5c6

Please sign in to comment.
You can’t perform that action at this time.