Run non-perf sensitive tests on Cirrus (#27971)

* Run non-perf sensisitive tests on Cirrus
This commit is contained in:
Dan Field
2019-03-10 07:52:44 -07:00
committed by GitHub
parent 11ede46846
commit 2a644f301e
15 changed files with 275 additions and 75 deletions

View File

@@ -272,8 +272,11 @@ Future<ProcessResult> _resultOfGradleTask({String workingDirectory, String task,
if (options != null) {
args.addAll(options);
}
final String gradle = Platform.isWindows ? 'gradlew.bat' : './gradlew';
print('Running Gradle: ${path.join(workingDirectory, gradle)} ${args.join(' ')}');
print(File(path.join(workingDirectory, gradle)).readAsStringSync());
return Process.run(
'./gradlew',
gradle,
args,
workingDirectory: workingDirectory,
environment: <String, String>{ 'JAVA_HOME': javaHome },

View File

@@ -9,6 +9,9 @@ import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart';
import 'package:path/path.dart' as path;
final String gradlew = Platform.isWindows ? 'gradlew.bat' : 'gradlew';
final String gradlewExecutable = Platform.isWindows ? gradlew : './$gradlew';
/// Tests that the Flutter module project template works and supports
/// adding Flutter to an existing Android app.
Future<void> main() async {
@@ -53,7 +56,7 @@ Future<void> main() async {
await inDirectory(Directory(path.join(projectDir.path, '.android')), () async {
await exec(
'./gradlew',
gradlewExecutable,
<String>['flutter:assembleDebug'],
environment: <String, String>{ 'JAVA_HOME': javaHome },
);
@@ -143,7 +146,7 @@ Future<void> main() async {
hostApp,
);
copy(
File(path.join(projectDir.path, '.android', 'gradlew')),
File(path.join(projectDir.path, '.android', gradlew)),
hostApp,
);
copy(
@@ -152,8 +155,10 @@ Future<void> main() async {
);
await inDirectory(hostApp, () async {
await exec('chmod', <String>['+x', 'gradlew']);
await exec('./gradlew',
if (!Platform.isWindows) {
await exec('chmod', <String>['+x', 'gradlew']);
}
await exec(gradlewExecutable,
<String>['app:assembleDebug'],
environment: <String, String>{ 'JAVA_HOME': javaHome },
);

View File

@@ -37,7 +37,7 @@ Future<void> main() async {
await inDirectory(projectDir, () async {
await flutter(
'build',
options: <String>['ios'],
options: <String>['ios', '--no-codesign'],
);
});
@@ -80,7 +80,7 @@ Future<void> main() async {
await inDirectory(projectDir, () async {
await flutter(
'build',
options: <String>['ios'],
options: <String>['ios', '--no-codesign'],
);
});
@@ -116,7 +116,7 @@ Future<void> main() async {
await inDirectory(projectDir, () async {
await flutter(
'build',
options: <String>['ios'],
options: <String>['ios', '--no-codesign'],
);
});

View File

@@ -295,23 +295,24 @@ tasks:
stage: devicelab
required_agent_capabilities: ["linux/android"]
gradle_plugin_test:
description: >
Verifies that the Flutter Gradle plugin supports standard and custom Android build types.
stage: devicelab
required_agent_capabilities: ["linux/android"]
# TODO(dnfield): Remove these once we're confident it's all working on cirrus
# gradle_plugin_test:
# description: >
# Verifies that the Flutter Gradle plugin supports standard and custom Android build types.
# stage: devicelab
# required_agent_capabilities: ["linux/android"]
plugin_test:
description: >
Checks that the project template works and supports plugins.
stage: devicelab
required_agent_capabilities: ["linux/android"]
# plugin_test:
# description: >
# Checks that the project template works and supports plugins.
# stage: devicelab
# required_agent_capabilities: ["linux/android"]
module_test:
description: >
Checks that the module project template works and supports add2app on Android.
stage: devicelab
required_agent_capabilities: ["linux/android"]
# module_test:
# description: >
# Checks that the module project template works and supports add2app on Android.
# stage: devicelab
# required_agent_capabilities: ["linux/android"]
flutter_gallery_instrumentation_test:
description: >
@@ -333,23 +334,24 @@ tasks:
stage: devicelab
required_agent_capabilities: ["linux/android"]
flutter_create_offline_test_linux:
description: >
Tests the `flutter create --offline` command.
stage: devicelab
required_agent_capabilities: ["linux/android"]
# TODO(dnfield): Remove these once we're confident it's all working on cirrus
# flutter_create_offline_test_linux:
# description: >
# Tests the `flutter create --offline` command.
# stage: devicelab
# required_agent_capabilities: ["linux/android"]
flutter_create_offline_test_windows:
description: >
Tests the `flutter create --offline` command.
stage: devicelab
required_agent_capabilities: ["windows/android"]
# flutter_create_offline_test_windows:
# description: >
# Tests the `flutter create --offline` command.
# stage: devicelab
# required_agent_capabilities: ["windows/android"]
flutter_create_offline_test_mac:
description: >
Tests the `flutter create --offline` command.
stage: devicelab
required_agent_capabilities: ["mac/android"]
# flutter_create_offline_test_mac:
# description: >
# Tests the `flutter create --offline` command.
# stage: devicelab
# required_agent_capabilities: ["mac/android"]
# iOS on-device tests
@@ -359,17 +361,18 @@ tasks:
stage: devicelab_ios
required_agent_capabilities: ["mac/ios"]
plugin_test_ios:
description: >
Checks that the project template works and supports plugins on iOS.
stage: devicelab_ios
required_agent_capabilities: ["mac/ios"]
# TODO(dnfield): Remove these once we're confident it's all working on cirrus
# plugin_test_ios:
# description: >
# Checks that the project template works and supports plugins on iOS.
# stage: devicelab_ios
# required_agent_capabilities: ["mac/ios"]
module_test_ios:
description: >
Checks that the module project template works and supports add2app on iOS.
stage: devicelab
required_agent_capabilities: ["mac/ios"]
# module_test_ios:
# description: >
# Checks that the module project template works and supports add2app on iOS.
# stage: devicelab
# required_agent_capabilities: ["mac/ios"]
external_ui_integration_test_ios:
description: >
@@ -494,11 +497,12 @@ tasks:
stage: devicelab
required_agent_capabilities: ["linux/android"]
dartdocs:
description: >
Tracks how many members are still lacking documentation.
stage: devicelab
required_agent_capabilities: ["linux/android"]
# TODO(dnfield): Remove these once we're confident it's all working on cirrus
# dartdocs:
# description: >
# Tracks how many members are still lacking documentation.
# stage: devicelab
# required_agent_capabilities: ["linux/android"]
flutter_test_performance:
description: >

View File

@@ -26,14 +26,14 @@ dependencies:
crypto: 2.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
intl: 0.15.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
json_rpc_2: 2.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
petitparser: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
petitparser: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
pub_semver: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
source_span: 1.5.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
stream_channel: 1.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
term_glyph: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
typed_data: 1.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
web_socket_channel: 1.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
xml: 3.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
xml: 3.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dev_dependencies:
# See packages/flutter_test/pubspec.yaml for why we're pinning this version.
@@ -74,4 +74,4 @@ dev_dependencies:
watcher: 0.9.7+10 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
yaml: 2.1.15 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
# PUBSPEC CHECKSUM: 20e4
# PUBSPEC CHECKSUM: d7e6