Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Add basic test for bootstrap. #63

Merged
merged 1 commit into from
Oct 14, 2015
Merged

Conversation

brendandahl
Copy link
Contributor

I had some issues with the gulp-install not triggering a finish event, but that can be fixed with calling sink() at the end. However, I have install disabled for tests as it is slow and require network connectivity.

Fixes #36

@marco-c
Copy link
Contributor

marco-c commented Oct 14, 2015

Looks good to me, I have a single question. Why do you need the noInstall option? Does the test fail on Travis if you try to install the dependencies? Or did you add it because otherwise the test takes too much time?

@@ -131,7 +154,8 @@ module.exports = function(config) {
.pipe(template(templateConfig))
.pipe(conflict(rootDir))
.pipe(gulp.dest(rootDir))
.pipe(install());
.pipe(config.noInstall ? util.noop() : install())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: couldn't you directly use sink here instead of util.noop and then sink?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Install also doesn't work if you don't do a sink().

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, ok. Could you update the comment in the following line then?

@brendandahl
Copy link
Contributor Author

Why do you need the noInstall option?

Mainly because it's slow as mentioned above. Let me try on travis and see if how it's doing.

@marco-c
Copy link
Contributor

marco-c commented Oct 14, 2015

Mainly because it's slow as mentioned above

Oops, I've skimmed over the first comment! I really didn't notice you wrote something in it 😄

@marco-c
Copy link
Contributor

marco-c commented Oct 14, 2015

There are a few npm ERR! tar.unpack untar error and then the test times out.

marco-c pushed a commit that referenced this pull request Oct 14, 2015
@marco-c marco-c merged commit 9ac7e88 into mozilla:master Oct 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

figure out how to test bootstrap command
2 participants