Skip to content

Commit 1ae663b

Browse files
authored
add enough files to set up travis support (#2)
* add enough files to set up travis support * add a travis badge
1 parent bc9238a commit 1ae663b

File tree

6 files changed

+79
-0
lines changed

6 files changed

+79
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: dart
2+
dart:
3+
- "dev/raw/latest"
4+
5+
script: ./tool/travis.sh
6+
7+
branches:
8+
only:
9+
- master
10+
11+
cache:
12+
directories:
13+
- $HOME/.pub-cache

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Flutter DevTools
2+
[![Build Status](https://travis-ci.org/flutter/devtools.svg?branch=master)](https://travis-ci.org/flutter/devtools)
23

34
Performance tools for Flutter.
45

analysis_options.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
analyzer:
2+
errors:
3+
unused_import: error
4+
5+
#TODO: Normalize this with /flutter/flutter/blob/master/analysis_options.yaml.
6+
linter:
7+
rules:
8+
- avoid_init_to_null
9+
- avoid_return_types_on_setters
10+
- camel_case_types
11+
- directives_ordering
12+
- hash_and_equals
13+
- iterable_contains_unrelated_type
14+
- list_remove_unrelated_type
15+
- prefer_final_fields
16+
- slash_for_doc_comments
17+
- test_types_in_equals
18+
- unrelated_type_equality_checks
19+
- valid_regexps

lib/hello.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright 2018 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
void main() {
6+
print('hello');
7+
}

pubspec.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: devtools
2+
description: Performance tools for Flutter.
3+
version: 0.0.1
4+
homepage: https://github.com/flutter/devtools
5+
6+
environment:
7+
sdk: '>=2.0.0-dev <3.0.0'
8+
9+
dependencies:
10+
intl: ^0.15.0
11+
logging: ^0.11.0
12+
vm_service_lib: ^0.3.8
13+
14+
dev_dependencies:
15+
build_runner: any
16+
build_web_compilers: any
17+
test: ^1.0.0

tool/travis.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
# Copyright 2018 The Chromium Authors. All rights reserved.
4+
# Use of this source code is governed by a BSD-style license that can be
5+
# found in the LICENSE file.
6+
7+
# Fast fail the script on failures.
8+
set -e
9+
10+
# Print out the Dart version in use.
11+
dart --version
12+
13+
# Add globally activated packages to the path.
14+
export PATH="$PATH":"~/.pub-cache/bin"
15+
16+
# Analyze the source.
17+
pub global activate tuneup
18+
tuneup check --ignore-infos
19+
20+
# Ensure we can build the app.
21+
pub global activate webdev
22+
webdev build

0 commit comments

Comments
 (0)