Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CI for Windows with Azure Pipelines #120

Merged
merged 13 commits into from
Jul 2, 2019
Merged

Set up CI for Windows with Azure Pipelines #120

merged 13 commits into from
Jul 2, 2019

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Jul 2, 2019

Resolves #119.

CircleCI is still primary CI service for Marp team. Azure Pipelines will be used only for testing in Windows environment.

@yhatt
Copy link
Member Author

yhatt commented Jul 2, 2019

Now we have got CI build for Windows. It still seems to be unstable by puppeteer/puppeteer#1947 but it would be better than shipping release with bugs.

@yhatt
Copy link
Member Author

yhatt commented Jul 2, 2019

[ci skip] commit message seems to work reversely from CircleCI. (Commit in PR won't skip and merged commit would skip)

It is better to run CI in each commit than using [ci skip]. And maintainer have to do squash merge when PR commit has included [ci skip].

yhatt added 5 commits July 2, 2019 21:13
Use fixed directory path to Carlo profile and omit cleanup.
Override close function of Window to ignore raising an error if a target
page has already closed.
try {
return await close.call(win)
} catch (e) {
if (!e.message.includes('Target closed.')) throw e
Copy link
Member Author

Choose a reason for hiding this comment

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

Even if raising error Target closed., the close event has called correctly. We decided to ignore this error.

this.carloInternal = await carlo.launch({
localDataDir,
localDataDir: path.resolve(os.tmpdir(), './marp-cli-carlo'),
Copy link
Member Author

Choose a reason for hiding this comment

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

Update the temporary directory to use a fixed path to prevent random failing when finalization.

@yhatt yhatt merged commit 3e75894 into master Jul 2, 2019
@yhatt yhatt deleted the azure-pipelines branch July 2, 2019 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup CI test in Windows environment
1 participant