Replace flutter --build-snapshot with --precompile that takes input (#20574)

This commit is contained in:
Stanislav Baranov
2018-08-16 08:46:57 -07:00
committed by GitHub
parent 393f9276ca
commit 2c0329a103
9 changed files with 61 additions and 35 deletions

View File

@@ -813,6 +813,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
), isNot(equals(0)));
}, overrides: contextOverrides);
@@ -836,6 +837,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
);
expect(genSnapshotExitCode, 0);
@@ -880,6 +882,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
);
expect(genSnapshotExitCode, 0);
@@ -910,6 +913,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
), isNot(equals(0)));
}, overrides: contextOverrides);
@@ -933,6 +937,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
);
expect(genSnapshotExitCode, 0);
@@ -976,6 +981,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
);
expect(genSnapshotExitCode, 0);
@@ -1005,6 +1011,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
), isNot(equals(0)));
}, overrides: contextOverrides);
@@ -1028,6 +1035,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
);
expect(genSnapshotExitCode, 0);
@@ -1071,6 +1079,7 @@ void main() {
mainPath: 'main.dill',
packagesPath: '.packages',
outputPath: outputPath,
compilationTraceFilePath: kTrace,
);
expect(genSnapshotExitCode, 0);