[go: nahoru, domu]

Skip to content

Commit

Permalink
Integrate Chrome tracing into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Aug 1, 2018
1 parent 2d476c9 commit 3cc9bd8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- run:
name: Assemble
command: ./gradlew --no-daemon assemble bundle test :store:item:android-sql:assembleAndroidTest :frontend:android:lint projectDependencyGraph
command: ./gradlew --no-daemon --init-script init.gradle -Dtrace assemble bundle test :store:item:android-sql:assembleAndroidTest :frontend:android:lint projectDependencyGraph
# TODO remove bundle https://issuetracker.google.com/issues/79936441
# TODO remove assembleAndroidTest https://issuetracker.google.com/issues/80464227
# TODO remove assembleAndroidTest https://issuetracker.google.com/issues/79934948
Expand All @@ -41,6 +41,8 @@ jobs:
path: build/commit-timestamp.txt
- store_artifacts:
path: build/project.dot.png
- store_artifacts:
path: build/trace.html

- run:
name: Aggregate Test Results
Expand Down
Binary file added gradle/chrome-trace.jar
Binary file not shown.
11 changes: 11 additions & 0 deletions init.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
initscript {
dependencies {
classpath files('gradle/chrome-trace.jar')
}
}

rootProject {
ext.chromeTraceFile = new File(rootProject.buildDir, 'trace.html')
}

apply plugin: org.gradle.trace.GradleTracingPlugin

0 comments on commit 3cc9bd8

Please sign in to comment.