Closed zbjornson closed 4 years ago
ci/*/preinstall.sh
being ready for NVM, that was true for Linux but not macOS, I've made the fix to .travis.yml
for the latter.So we probably do need ci/*/node_version.sh
so it can use Install-Product
or whatever it does in master
, and it can now just do a simple nvm install/nvm use
in macOS and Linux. Then I guess we'll have to add something that skips the testing if a node version isn't available 😕 I'm not sure what else we can do unless there's some alternate to NVM for Windows.
Ahh. What about downloading the portable node executables from https://nodejs.org/dist/vX.Y.Z for testing?
e.g.
That should work yeah, ci/win/node_version.sh
can use wget
, then probably has to do alias node ='./vX.Y.Z.exe'
(hopefully that doesn't have side effects 😬). Note that I changed your example wiki code a bit, the version variable doesn't have the v
in it.
I still like using node-gyp's version argument though, we can leave that.
Any news on this?
I have not tested this, but this should avoid the issue with Appveyor being slow to update their images and speed up the builds.
I don't know what $NODEJS_VERSIONS looks like; the
--target
option takes a fullvX.Y.Z
string, not justX
. If you're only usingX
you could change it to--target=v$ver.0.0
.