Skip to content

Commit dd93344

Browse files
authored
add windows travis config, remove appveyor config (#712)
1 parent 65fd8e1 commit dd93344

20 files changed

+168
-48
lines changed

.travis.yml

Lines changed: 20 additions & 8 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,31 +18,49 @@ 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
3531
name: "SDK: 2.5.0; PKG: dwds; TASKS: `pub run test`"
3632
dart: "2.5.0"
33+
os: linux
3734
env: PKGS="dwds"
3835
script: ./tool/travis.sh test_0
3936
- stage: unit_test
4037
name: "SDK: stable; PKG: dwds; TASKS: `pub run test`"
4138
dart: stable
39+
os: linux
40+
env: PKGS="dwds"
41+
script: ./tool/travis.sh test_0
42+
- stage: unit_test
43+
name: "SDK: stable; PKG: dwds; TASKS: `pub run test`"
44+
dart: stable
45+
os: windows
4246
env: PKGS="dwds"
4347
script: ./tool/travis.sh test_0
4448
- stage: unit_test
4549
name: "SDK: 2.5.0; PKG: webdev; TASKS: `pub run test -j 1`"
4650
dart: "2.5.0"
51+
os: linux
52+
env: PKGS="webdev"
53+
script: ./tool/travis.sh test_1
54+
- stage: unit_test
55+
name: "SDK: stable; PKG: webdev; TASKS: `pub run test -j 1`"
56+
dart: stable
57+
os: linux
4758
env: PKGS="webdev"
4859
script: ./tool/travis.sh test_1
4960
- stage: unit_test
5061
name: "SDK: stable; PKG: webdev; TASKS: `pub run test -j 1`"
5162
dart: stable
63+
os: windows
5264
env: PKGS="webdev"
5365
script: ./tool/travis.sh test_1
5466

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ stages:
1414
dart: [2.5.0]
1515
- unit_test:
1616
- test:
17+
- test:
18+
os: windows
19+
dart: stable

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)