Skip to content

Commit 1464a68

Browse files
committed
set up a travis build
1 parent dd2ae29 commit 1464a68

File tree

9 files changed

+26
-18
lines changed

9 files changed

+26
-18
lines changed

.travis.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
language: dart
2+
sudo: false
23

34
script: ./tool/travis.sh
45

5-
# Speed up builds by using containerization. Disable this if you need to use
6-
# sudo in your scripts.
7-
sudo: false
8-
96
branches:
107
only:
118
- master
9+
10+
notifications:
11+
webhooks:
12+
urls:
13+
- https://webhooks.gitter.im/e/d01aa607aab004a51594
14+
on_success: change # options: [always|never|change] default: always
15+
on_failure: always # options: [always|never|change] default: always
16+
on_start: never # options: [always|never|change] default: always

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ All submissions, including submissions by project members, require review.
2626

2727
All files in the project must start with the following header.
2828

29-
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
29+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
3030
// for details. All rights reserved. Use of this source code is governed by a
3131
// BSD-style license that can be found in the LICENSE file.
3232

lib/flutter_dev.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
1+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

lib/src/atom.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
1+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

test/all_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
1+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

tool/grind.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
1+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

@@ -37,6 +37,10 @@ build() async {
3737

3838
File entryJsFile = getFile('web/entry_all.js');
3939
String contents = '''
40+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
41+
// for details. All rights reserved. Use of this source code is governed by a
42+
// BSD-style license that can be found in the LICENSE file.
43+
4044
global.dart_utils = require('./ddc/dev_compiler/runtime/dart_utils.js');
4145
global.dart_library = require('./ddc/dev_compiler/runtime/dart_library.js');
4246

tool/travis.sh

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
#!/bin/bash
22

3-
# Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
3+
# Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
44
# for details. All rights reserved. Use of this source code is governed by a
55
# BSD-style license that can be found in the LICENSE file.
66

77
# Fast fail the script on failures.
88
set -e
99

10-
# Verify that the libraries are error free.
11-
dartanalyzer --fatal-warnings \
12-
lib/sample.dart \
13-
test/all_test.dart
14-
15-
# Run the tests.
16-
pub run test
10+
# Analyze, build and test.
11+
pub run grinder bot

web/entry.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
1+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

web/entry_all.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2015, the Flutter project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
global.dart_utils = require('./ddc/dev_compiler/runtime/dart_utils.js');
26
global.dart_library = require('./ddc/dev_compiler/runtime/dart_library.js');
37

0 commit comments

Comments
 (0)