Skip to content

Commit 08fc287

Browse files
committed
Enable travis windows bots for all tests
Skips the tests that are failing.
1 parent 127a1e7 commit 08fc287

20 files changed

+188
-60
lines changed

.travis.yml

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
# Created with package:mono_repo v2.2.0
1+
# Created with package:mono_repo v2.3.0
22
language: dart
33

44
# Custom configuration
55
sudo: required
66
addons:
77
chrome: stable
88
before_install:
9-
- "export CHROMEDRIVER_BINARY=/usr/bin/google-chrome"
10-
- "export CHROMEDRIVER_ARGS=--no-sandbox"
11-
- "/usr/bin/google-chrome --version"
12-
- "export CHROME_LATEST_VERSION=$(/usr/bin/google-chrome --version | cut -d' ' -f3 | cut -d'.' -f1)"
13-
- "export CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_LATEST_VERSION)"
14-
- "wget https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip"
15-
- unzip chromedriver_linux64.zip
9+
- tool/travis_setup.sh
1610
- "export PATH=$PATH:$PWD"
1711
after_failure:
1812
- tool/report_failure.sh
@@ -24,33 +18,63 @@ jobs:
2418
- stage: analyzer_and_format
2519
name: "SDK: 2.5.0; PKGS: dwds, example, webdev; TASKS: `dartanalyzer --fatal-warnings .`"
2620
dart: "2.5.0"
21+
os: linux
2722
env: PKGS="dwds example webdev"
2823
script: ./tool/travis.sh dartanalyzer_1
2924
- stage: analyzer_and_format
3025
name: "SDK: dev; PKGS: dwds, example, webdev; TASKS: [`dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos --fatal-warnings .`]"
3126
dart: dev
27+
os: linux
3228
env: PKGS="dwds example webdev"
3329
script: ./tool/travis.sh dartfmt dartanalyzer_0
3430
- stage: unit_test
35-
name: "SDK: 2.5.0; PKG: dwds; TASKS: `pub run test`"
31+
name: "SDK: 2.5.0; PKG: dwds; TASKS: `pub run test -j 1`"
3632
dart: "2.5.0"
33+
os: linux
3734
env: PKGS="dwds"
38-
script: ./tool/travis.sh test_0
35+
script: ./tool/travis.sh test
3936
- stage: unit_test
40-
name: "SDK: stable; PKG: dwds; TASKS: `pub run test`"
37+
name: "SDK: 2.5.0; PKG: dwds; TASKS: `pub run test -j 1`"
38+
dart: "2.5.0"
39+
os: windows
40+
env: PKGS="dwds"
41+
script: ./tool/travis.sh test
42+
- stage: unit_test
43+
name: "SDK: stable; PKG: dwds; TASKS: `pub run test -j 1`"
4144
dart: stable
45+
os: linux
4246
env: PKGS="dwds"
43-
script: ./tool/travis.sh test_0
47+
script: ./tool/travis.sh test
48+
- stage: unit_test
49+
name: "SDK: stable; PKG: dwds; TASKS: `pub run test -j 1`"
50+
dart: stable
51+
os: windows
52+
env: PKGS="dwds"
53+
script: ./tool/travis.sh test
54+
- stage: unit_test
55+
name: "SDK: 2.5.0; PKG: webdev; TASKS: `pub run test -j 1`"
56+
dart: "2.5.0"
57+
os: linux
58+
env: PKGS="webdev"
59+
script: ./tool/travis.sh test
4460
- stage: unit_test
4561
name: "SDK: 2.5.0; PKG: webdev; TASKS: `pub run test -j 1`"
4662
dart: "2.5.0"
63+
os: windows
64+
env: PKGS="webdev"
65+
script: ./tool/travis.sh test
66+
- stage: unit_test
67+
name: "SDK: stable; PKG: webdev; TASKS: `pub run test -j 1`"
68+
dart: stable
69+
os: linux
4770
env: PKGS="webdev"
48-
script: ./tool/travis.sh test_1
71+
script: ./tool/travis.sh test
4972
- stage: unit_test
5073
name: "SDK: stable; PKG: webdev; TASKS: `pub run test -j 1`"
5174
dart: stable
75+
os: windows
5276
env: PKGS="webdev"
53-
script: ./tool/travis.sh test_1
77+
script: ./tool/travis.sh test
5478

5579
stages:
5680
- analyzer_and_format

appveyor.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

dwds/chromedriver.exe

8.3 MB
Binary file not shown.

dwds/mono_pkg.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ stages:
1313
- dartanalyzer: --fatal-warnings .
1414
dart: [2.5.0]
1515
- unit_test:
16-
- test:
16+
- test: -j 1
17+
os:
18+
- windows
19+
- linux

dwds/test/chrome_proxy_service_test.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ void main() {
107107
await service.removeBreakpoint(isolate.id, bp.id);
108108
expect(isolate.breakpoints, isEmpty);
109109
});
110+
}, onPlatform: {
111+
'windows': const Skip('https://github.com/dart-lang/webdev/issues/711'),
110112
});
111113

112114
group('callServiceExtension', () {
@@ -374,6 +376,8 @@ void main() {
374376
expect(scriptRef.uri, endsWith('.dart'));
375377
expect(script.tokenPosTable, isNotEmpty);
376378
}
379+
}, onPlatform: {
380+
'windows': const Skip('https://github.com/dart-lang/webdev/issues/711'),
377381
});
378382
});
379383

@@ -391,6 +395,8 @@ void main() {
391395
scripts.scripts.map((s) => s.uri), contains(endsWith('part.dart')));
392396
expect(scripts.scripts.map((s) => s.uri),
393397
contains('package:intl/src/intl/date_format_helpers.dart'));
398+
}, onPlatform: {
399+
'windows': const Skip('https://github.com/dart-lang/webdev/issues/711'),
394400
});
395401

396402
test('clearVMTimeline', () {
@@ -466,6 +472,8 @@ void main() {
466472
expect(first.code.kind, 'Dart');
467473
expect(first.code.name, '<closure>');
468474
});
475+
}, onPlatform: {
476+
'windows': const Skip('https://github.com/dart-lang/webdev/issues/711'),
469477
});
470478

471479
group('getStack', () {
@@ -537,6 +545,8 @@ void main() {
537545
// Resume the isolate to not impact other tests.
538546
await service.resume(isolateId);
539547
});
548+
}, onPlatform: {
549+
'windows': const Skip('https://github.com/dart-lang/webdev/issues/711'),
540550
});
541551

542552
test('getVM', () async {

dwds/test/dart_uri_file_uri_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
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

5+
@TestOn('vm')
6+
@OnPlatform({
7+
'windows': Skip('https://github.com/dart-lang/webdev/issues/711'),
8+
})
59
import 'dart:io';
610

711
import 'package:path/path.dart' as p;

dwds/test/dart_uri_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
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

5+
@TestOn('vm')
6+
@OnPlatform({
7+
'windows': Skip('https://github.com/dart-lang/webdev/issues/711'),
8+
})
59
import 'package:dwds/src/utilities/dart_uri.dart';
610
import 'package:test/test.dart';
711

dwds/test/debug_extension_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
// When run locally this test may require a manifest key. This makes it easy to
66
// just skip it.
77
@Tags(['extension'])
8+
@OnPlatform({
9+
'windows': Skip('https://github.com/dart-lang/webdev/issues/711'),
10+
})
811
import 'package:test/test.dart';
912

1013
import 'fixtures/context.dart';

dwds/test/debug_service_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
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

5+
@TestOn('vm')
6+
@OnPlatform({
7+
'windows': Skip('https://github.com/dart-lang/webdev/issues/711'),
8+
})
59
import 'dart:io';
610

711
import 'package:test/test.dart';

dwds/test/devtools_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
@Timeout(Duration(minutes: 5))
6+
@TestOn('vm')
7+
@OnPlatform({
8+
'windows': Skip('https://github.com/dart-lang/webdev/issues/711'),
9+
})
610
import 'package:test/test.dart';
711
import 'package:webdriver/io.dart';
812

0 commit comments

Comments
 (0)