Skip to content

Commit b804878

Browse files
authored
Merge pull request #2 from NativeScript/hristova/test-only-one-build
test only one build, instead of build & webpack
2 parents 99d1f83 + c9f6022 commit b804878

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

lib/checker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function run() {
7878

7979
// Test if the plugin builds when added to an app
8080
await ProjectService.prepareProject(plugin);
81-
const actions = ['testWebpack', 'testBuild', 'testSnapshot']; // removed for speed , 'testUglify', 'testAot'];
81+
const actions = ['testBuild']; // removed for speed , 'testSnapshot', 'testUglify', 'testAot'];
8282
const result: ResultsInterface = {
8383
name: plugin.name
8484
};
@@ -92,6 +92,8 @@ export async function run() {
9292
result[resultName] = actionResult;
9393
result[resultName + 'Time'] = Math.round((endDate - startDate) / 1000);
9494
}
95+
result.webpack = result.build;
96+
result.webpackTime = result.buildTime;
9597

9698
await ProjectService.cleanProject();
9799
results.push(result);

lib/project.service.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,6 @@ export namespace ProjectService {
130130
}
131131
}
132132

133-
export async function testWebpack(plugin: MarketplaceService.PluginModel) {
134-
Logger.log('WEBPACK BUILD:');
135-
return await testPlugin(plugin, {
136-
android: '--bundle',
137-
ios: '--bundle'
138-
});
139-
}
140-
141133
export async function testSnapshot(plugin: MarketplaceService.PluginModel) {
142134
Logger.log('SNAPSHOT BUILD:');
143135
const signKeystore = cloudEnabled ? '../../debug.p12' : '~/.android/debug.keystore';
@@ -163,7 +155,7 @@ export namespace ProjectService {
163155
}
164156

165157
export async function testBuild(plugin: MarketplaceService.PluginModel) {
166-
Logger.log('NORMAL BUILD:');
158+
Logger.log('NORMAL BUILD (Webpack+HMR):');
167159
return await testPlugin(plugin, {
168160
android: ' ',
169161
ios: ' '

0 commit comments

Comments
 (0)