Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.53 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.53 KB

OBSOLETE

Scripts for Flutter's performance lab and dashboard

Build Status

This repository contains scripts for the job that generates data for the dashboard.

To test this script locally

  • Get a Mac with a recent Mac OS X.
  • Clone this repository exactly into ~/flutter_dashboard/dashboard_box, so that the run.sh script could be found exactly at ~/flutter_dashboard/dashboard_box/run.sh.
  • For better results, make sure there's nothing else in ~/flutter_dashboard.
  • Complete the Flutter Setup, if you haven't already. Note, however, that this job will install its own copy of Flutter.
  • Connect an Android device.
  • Create config.json file in dashboard_box directory.
  • Launch run.sh.

On the actual build box launchd writes standard output in /tmp/flutter.dashboard.stdout and /tmp/flutter.dashboard.stderr.

config.json

The config file must be a JSON file under dashboard_box and define the following variables:

  • android_device_id - the ID of the Android device used for performance testing
  • firebase_flutter_dashboard_token - authentication token to Firebase used to upload metrics (not needed for local testing)

Example:

{
  "android_device_id": "...",
  "firebase_flutter_dashboard_token": "..."
}

To re-build the web site

Run pub build. The output will be placed in build/web/; this is the location that firebase deploys from.