-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix windows bugs & tests #1965
Fix windows bugs & tests #1965
Changes from all commits
c4d7802
c30d1df
85c8ef5
1bdeee1
ee0ac76
8aa7137
6e3f29a
2dfbcbe
817a6d6
6755adf
18ea3e6
355f225
e281a2c
7b1ddd1
1d4b4df
1644fb9
78f0318
415c79c
99b151d
327e88f
5b7f2b5
325c32f
f911eb5
60c43d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ environment: | |
matrix: | ||
- nodejs_version: "6" | ||
- nodejs_version: "8" | ||
- nodejs_version: "10" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why don't we test on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it takes too long to run all platforms and node 10 should generally work if node 8 works. Travis is fine, cuz it runs the builds in parallel, AppVeyor runs one platform after another taking ages to finish. Besides node specific issues should be caught by Travis anyways, Appveyor is just to catch windows errors which should be the same on pretty much every node version (unless there is a bug inside node or some native package we use (which we try to avoid)) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, that makes sense. Hopefully, there won't rise any node-specific windows errors like that edge case. |
||
|
||
# Install scripts. (runs after repo cloning) | ||
install: | ||
|
@@ -20,11 +19,6 @@ install: | |
- rustc -Vv | ||
- cargo -V | ||
|
||
# Restore symlinks from git | ||
# https://github.com/appveyor/ci/issues/650 | ||
- cmd: git config core.symlinks true | ||
- cmd: git reset --hard | ||
|
||
# Post-install test scripts. | ||
test_script: | ||
# Output useful info for debugging. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const isGlob = require('is-glob'); | ||
const fastGlob = require('fast-glob'); | ||
|
||
function normalisePath(p) { | ||
return p.replace(/\\/g, '/'); | ||
} | ||
|
||
exports.isGlob = function(p) { | ||
return isGlob(normalisePath(p)); | ||
}; | ||
|
||
exports.glob = function(p, options) { | ||
return fastGlob(normalisePath(p), options); | ||
}; | ||
|
||
exports.glob.sync = function(p, options) { | ||
return fastGlob.sync(normalisePath(p), options); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis already tests Node 6 compatibility and the tests that break on windows that don't break on Travis are usually related to the filesystem, which is the same on Node 8.
Removing this would make it as fast as Travis, this way we don't have to wait hours before AppVeyor catches up