Configure Cirrus CI (#16224)
* Configure Cirrus CI * Read file directly instead of shelling a command * Wait for all streams to finish * Add LTR `textDirection` Since `RenderFlex#_debugHasNecessaryDirections` requires it when `direction` is horizontal and there are multiple children.
This commit is contained in:
committed by
Ian Hickson
parent
c77ceb01be
commit
7333459916
13
dev/bots/docker/Dockerfile.windows
Normal file
13
dev/bots/docker/Dockerfile.windows
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM microsoft/windowsservercore:1709
|
||||
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN netsh interface ipv4 set subinterface 'vEthernet (Ethernet)' mtu=1460 store=persistent
|
||||
|
||||
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||
|
||||
RUN choco install -y git
|
||||
|
||||
SHELL ["cmd", "/S", "/C"]
|
||||
|
||||
RUN setx /m PATH "%PATH%;C:\nodejs"
|
||||
@@ -78,18 +78,12 @@ Future<Null> _verifyInternationalizations() async {
|
||||
);
|
||||
|
||||
final String localizationsFile = path.join('packages', 'flutter_localizations', 'lib', 'src', 'l10n', 'localizations.dart');
|
||||
final String expectedResult = await new File(localizationsFile).readAsString();
|
||||
|
||||
final String executable = Platform.isWindows ? 'powershell' : 'cat';
|
||||
final List<String> args = Platform.isWindows ?
|
||||
<String>['\$PSDefaultParameterValues["*:Encoding"]="utf8";(gc $localizationsFile) -join "`n"']:
|
||||
<String>[localizationsFile];
|
||||
|
||||
final EvalResult sourceContents = await _evalCommand(executable, args, workingDirectory: flutterRoot);
|
||||
|
||||
if (genResult.stdout.trim() != sourceContents.stdout.trim()) {
|
||||
if (genResult.stdout.trim() != expectedResult.trim()) {
|
||||
stderr
|
||||
..writeln('<<<<<<< $localizationsFile')
|
||||
..writeln(sourceContents.stdout.trim())
|
||||
..writeln(expectedResult.trim())
|
||||
..writeln('=======')
|
||||
..writeln(genResult.stdout.trim())
|
||||
..writeln('>>>>>>> gen_localizations')
|
||||
@@ -343,8 +337,10 @@ Future<Null> _runCommand(String executable, List<String> arguments, {
|
||||
|
||||
Future<List<List<int>>> savedStdout, savedStderr;
|
||||
if (printOutput) {
|
||||
stdout.addStream(process.stdout);
|
||||
stderr.addStream(process.stderr);
|
||||
await Future.wait(<Future<Null>>[
|
||||
stdout.addStream(process.stdout),
|
||||
stderr.addStream(process.stderr)
|
||||
]);
|
||||
} else {
|
||||
savedStdout = process.stdout.toList();
|
||||
savedStderr = process.stderr.toList();
|
||||
|
||||
Reference in New Issue
Block a user