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

Add AppVeyor configuration #1465

Merged
merged 3 commits into from
Sep 3, 2016
Merged

Add AppVeyor configuration #1465

merged 3 commits into from
Sep 3, 2016

Conversation

Daniel15
Copy link
Contributor

@Daniel15 Daniel15 commented Aug 19, 2016

The build doesn't actually work properly yet (a bunch of tests fail: https://ci.appveyor.com/project/Daniel15/jest/build/1.0.5/job/wjnpa9thok6twp5y) but it's worth at least starting to work on this. Once all the broken tests are fixed on Windows builds, having a continuous integration setup like this will prevent it from breaking again in the future.

Closes #1192

@ghost ghost added the CLA Signed ✔️ label Aug 19, 2016
@Daniel15
Copy link
Contributor Author

This is supposed to be stacked on top of #1463, but I forgot that Github is not Phabricator and doesn't support basic features such as that. The only change in this pull request is supposed to be the appveyor.yml file.

@codecov-io
Copy link

codecov-io commented Aug 19, 2016

Current coverage is 90.31% (diff: 100%)

No coverage report found for master at 46868fc.

Powered by Codecov. Last update 46868fc...8425a27

@cpojer
Copy link
Member

cpojer commented Aug 27, 2016

are you interested in fixing up all the tests to work on windows?

@Daniel15
Copy link
Contributor Author

Sure, I can take a look when I get a chance.

@Daniel15 Daniel15 force-pushed the appveyor branch 3 times, most recently from 4b486dd to 7650ac1 Compare September 2, 2016 05:06
@Daniel15
Copy link
Contributor Author

Daniel15 commented Sep 2, 2016

@cpojer - What do you think of this approach for now? I simply make Windows builds skip all the tests that fail on Windows. It's not ideal and I do plan on going through and fixing the tests incrementally, but at least it makes a Windows build actually possible and will still help catch some regressions.

It works! https://ci.appveyor.com/project/Daniel15/jest/build/7/job/apivm49w0c7nm4hc

@@ -0,0 +1,22 @@
environment:
matrix:
- nodejs_version: "4"
Copy link
Member

Choose a reason for hiding this comment

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

let's just not support node 4 on windows. I don't think we'll be able to do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are there any issues with Node 4 that would cause it to break?

Copy link
Member

Choose a reason for hiding this comment

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

No but I'm deciding right now that the only node version we support on Windows will be the latest.

@cpojer
Copy link
Member

cpojer commented Sep 2, 2016

Can we instead just dump the skipOnWindows file in scripts/ and add an @providesModule header? I'd like it not to be part of the actual jest packages.

@cpojer
Copy link
Member

cpojer commented Sep 2, 2016

In testSetupFile.js you could also do:

jest.mock('skipOnWindows', () => {
  return implementation.
}, {virtual: true});

@Daniel15
Copy link
Contributor Author

Daniel15 commented Sep 2, 2016

I'm having some trouble getting Jest running on my work laptop, so I'll do those changes tonight on my home PC instead 👍

@Daniel15 Daniel15 mentioned this pull request Sep 3, 2016
@cpojer cpojer merged commit c8a18d4 into jestjs:master Sep 3, 2016
@cpojer
Copy link
Member

cpojer commented Sep 3, 2016

Thank you @Daniel15!

One problem we often run into is that Jest has an issue with test paths and can't find any more tests. The exit code in this case is 0, so it says everything is fine. Can we add an additional check to appveyor that makes sure at least one test was run?

@cpojer
Copy link
Member

cpojer commented Sep 3, 2016

We have an integration test for that, however that uses Jest too, so if Jest breaks like this, we won't actually know :D

@Daniel15
Copy link
Contributor Author

Daniel15 commented Sep 3, 2016

Hmm, that's tricky... I feel like the exit code should actually be non-zero
if Jest doesn't find any tests. Can we change that behaviour or add a
--fail-on-no-tests flag that'd do it?

Sent from my phone.

On Sep 3, 2016 1:53 AM, "Christoph Pojer" [email protected] wrote:

Thank you @Daniel15 https://github.com/Daniel15!

One problem we often run into is that Jest has an issue with test paths
and can't find any more tests. The exit code in this case is 0, so it says
everything is fine. Can we add an additional check to appveyor that makes
sure at least one test was run?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#1465 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFnHaOB2ebBFJeeuWoUCeakdkgfoHMUks5qmTV0gaJpZM4JoL_3
.

@cpojer
Copy link
Member

cpojer commented Sep 6, 2016

I'm happy to accept a PR that adds this flag, yes. I'm worried about this having a bad impact on www where our test infra might try to run something that isn't actually a test; we don't want to fail and require changes to the test infra there.

tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI on windows
3 participants