analyzer_cli__analysis_time.dart 719 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:async';

import 'package:flutter_devicelab/tasks/analysis.dart';
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart';

Future<Null> main() async {
12 13 14
  final String revision = await getCurrentFlutterRepoCommit();
  final DateTime revisionTimestamp = await getFlutterRepoCommitTimestamp(revision);
  final String dartSdkVersion = await getDartVersion();
15 16 17 18 19 20
  await task(createAnalyzerCliTest(
    sdk: dartSdkVersion,
    commit: revision,
    timestamp: revisionTimestamp,
  ));
}