[ci] remove create offline tests (#65791)

Currently these tests are taking CI time without providing any value, because there is no verification that network connectivity is avoided. This is better covered by a unit test that verifies that --offline is passed to pub.
This commit is contained in:
Jonah Williams
2020-09-14 17:54:59 -07:00
committed by GitHub
parent 2fbb529d2b
commit 4e20f00053
5 changed files with 0 additions and 65 deletions

View File

@@ -1,10 +0,0 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/integration_tests.dart';
Future<void> main() async {
await task(createFlutterCreateOfflineTest());
}

View File

@@ -1,10 +0,0 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/integration_tests.dart';
Future<void> main() async {
await task(createFlutterCreateOfflineTest());
}

View File

@@ -1,10 +0,0 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/tasks/integration_tests.dart';
Future<void> main() async {
await task(createFlutterCreateOfflineTest());
}

View File

@@ -3,9 +3,7 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:path/path.dart' as path;
import '../framework/adb.dart';
import '../framework/framework.dart';
import '../framework/utils.dart';
@@ -88,34 +86,6 @@ TaskFunction createImageLoadingIntegrationTest() {
);
}
TaskFunction createFlutterCreateOfflineTest() {
return () async {
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_create_test.');
String output;
// The default create template has an actual online dependency against
// a pub package. Make sure it's available in pub cache first before
// trying to resolve it offline.
await inDirectory(tempDir, () async {
output = await eval(
path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['pub', 'cache', 'add', 'cupertino_icons', '--version', '1.0.0'],
);
});
await inDirectory(tempDir, () async {
output = await eval(
path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['create', '--offline', 'flutter_create_test'],
);
});
if (output.contains(RegExp('building flutter tool', caseSensitive: false))) {
return TaskResult.failure('`flutter create --offline` should not rebuild flutter tool');
} else if (!output.contains('All done!')) {
return TaskResult.failure('`flutter create` failed');
}
return TaskResult.success(null);
};
}
TaskFunction createAndroidSplashScreenKitchenSinkTest() {
return DriverTest(
'${flutterDirectory.path}/dev/integration_tests/android_splash_screens/splash_screen_kitchen_sink',