Skip to content

add enough files to set up travis support #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: dart
dart:
- "dev/raw/latest"

script: ./tool/travis.sh

branches:
only:
- master

cache:
directories:
- $HOME/.pub-cache
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
19 changes: 19 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions lib/hello.dart
Original file line number Diff line number Diff line change
@@ -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');
}
17 changes: 17 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions tool/travis.sh
Original file line number Diff line number Diff line change
@@ -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