-
Notifications
You must be signed in to change notification settings - Fork 184
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
Run CI on Windows with Appveyor #316
Comments
Mocha is not installed in any
They recommend pulling up the dependency to the root repo. Not sure why it works for you on Linux, maybe you have mocha installed globally? |
@kimgronqvist - The mocha dep actually can't be pulled up to the repo root because it's being used as an executable in an npm script. But it looks like the dependency is there, so... Maybe it just failed to build? Posted some more error output in #534. |
Looking at the logs, there's an issue with node-gyp. There's instructions for setting it up properly for Windows here: https://github.com/nodejs/node-gyp I have node-gyp configured already, and didn't get any errors during bootstrap. But when I tried to run the tests, it couldn't find Mocha because of how Lerna handles devDependencies that run as scripts. When I run |
Oh, man... don't tell me |
Looking at the link you included, it seems like we'd need to have admin permissions on the ci instance to install
as part of |
I tried both installing
it seems like we might be hitting nodejs/node-gyp#972, so I think I'm going to try a different version of node maybe? |
Neither 4.4.7 or 6.3.1 resolves the issue. I wonder, considering how long after the error is emitted, whether the |
I managed to run the tests here, the node-gyp problem is related to |
That's awesome @knoxzin1 ! What version of The test failures are discouraging, though -- looks like the color chooser isn't stable across OSes. I feel like the tests are kind of hacky, though -- the guarantee isn't that the colors will be stable across systems and runs, but instead visually distinct. We'll need to change the assertions to be more savvy about how they check that the modules were tagged correctly. |
@doug-wade I'm using the latest |
Upgrading to lastest Lerna and npm, I can see that it didn't actually link dependencies before - it just failed silently. However, now I get this error message (during linking):
Everything seems to be working on the build server though, so it's most likely something specific on my system. |
Can we restart this after #833 is merged? The dependency |
I rebased onto #833 and kicked off the build again: doug-wade#14 🤞 |
@doug-wade 🥁 🥁 🥁 and? |
All the Bad Things ™️; Even more puzzling is the Here's the full error trace:
See more at https://ci.appveyor.com/project/doug-wade/react-server/build/1.0.114 |
Try changing node versions: If we change the settings and have git checkout every file with LF automatically, lint blows up: Either we go through each test and make them all work on multiple platforms (huge pain) or we disable lint somehow on the Windows tests. |
We should definitely support nodes 4 and 6, as they are still supported, so I'd be resistant to running CI exclusively on node 7.
I think I lean towards the "go through each test and make them all work on multiple platforms" approach here. My goal is not only to test that React Server instances can run on Windows machines, but also to make sure that developers on Windows machines can contribute to React Server -- I think I might even value making it possible to develop on Windows more than making it possible to run on Windows. Being able to run the tests and linter locally are a big part of a good developer experience. |
I just rebased and re-ran the tests https://ci.appveyor.com/project/doug-wade/react-server/build/1.0.124. Looks like the colors are operating system dependent. |
We currently run our CI build on Linux, but it would be sweet to run them on Windows too with Appveyor. Unfortunately, the build is currently broken on Windows, so we'll have to get a Windows machine to work with and fix the build before we turn on the CI.
The text was updated successfully, but these errors were encountered: