From c91f3d15ab649a3eba8b97c9f6ccd43c3395360c Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 6 Aug 2018 16:24:19 -0700 Subject: [PATCH 1/2] add enough files to set up travis support --- .travis.yml | 13 +++++++++++++ analysis_options.yaml | 19 +++++++++++++++++++ lib/hello.dart | 7 +++++++ pubspec.yaml | 17 +++++++++++++++++ tool/travis.sh | 22 ++++++++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 .travis.yml create mode 100644 analysis_options.yaml create mode 100644 lib/hello.dart create mode 100644 pubspec.yaml create mode 100755 tool/travis.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..539374b7470 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: dart +dart: + - "dev/raw/latest" + +script: ./tool/travis.sh + +branches: + only: + - master + +cache: + directories: + - $HOME/.pub-cache diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 00000000000..9e4e5b61d85 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,19 @@ +analyzer: + errors: + unused_import: error + +#TODO: Normalize this with /flutter/flutter/blob/master/analysis_options.yaml. +linter: + rules: + - avoid_init_to_null + - avoid_return_types_on_setters + - camel_case_types + - directives_ordering + - hash_and_equals + - iterable_contains_unrelated_type + - list_remove_unrelated_type + - prefer_final_fields + - slash_for_doc_comments + - test_types_in_equals + - unrelated_type_equality_checks + - valid_regexps diff --git a/lib/hello.dart b/lib/hello.dart new file mode 100644 index 00000000000..a107faaeb00 --- /dev/null +++ b/lib/hello.dart @@ -0,0 +1,7 @@ +// Copyright 2018 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. + +void main() { + print('hello'); +} diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 00000000000..5a77e485af6 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,17 @@ +name: devtools +description: Performance tools for Flutter. +version: 0.0.1 +homepage: https://github.com/flutter/devtools + +environment: + sdk: '>=2.0.0-dev <3.0.0' + +dependencies: + intl: ^0.15.0 + logging: ^0.11.0 + vm_service_lib: ^0.3.8 + +dev_dependencies: + build_runner: any + build_web_compilers: any + test: ^1.0.0 diff --git a/tool/travis.sh b/tool/travis.sh new file mode 100755 index 00000000000..2c959242c4f --- /dev/null +++ b/tool/travis.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Copyright 2018 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. + +# Fast fail the script on failures. +set -e + +# Print out the Dart version in use. +dart --version + +# Add globally activated packages to the path. +export PATH="$PATH":"~/.pub-cache/bin" + +# Analyze the source. +pub global activate tuneup +tuneup check --ignore-infos + +# Ensure we can build the app. +pub global activate webdev +webdev build From 3a7013fbcc946124a170e012d4bb9bc87c129441 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 6 Aug 2018 16:29:16 -0700 Subject: [PATCH 2/2] add a travis badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5c1e332bf4f..89fdf39a438 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Flutter DevTools +[![Build Status](https://travis-ci.org/flutter/devtools.svg?branch=master)](https://travis-ci.org/flutter/devtools) Performance tools for Flutter.