Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
49e68922
Commit
49e68922
authored
Oct 29, 2014
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build: Uses different strategy to test bins status
Only 90% of the test should pass.
parent
5f275e71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
build.js
build.js
+8
-3
No files found.
build.js
View file @
49e68922
...
@@ -34,16 +34,21 @@ if (!force && !process.env.SKIP_NODE_SASS_TESTS) {
...
@@ -34,16 +34,21 @@ if (!force && !process.env.SKIP_NODE_SASS_TESTS) {
fs
.
statSync
(
path
.
join
(
__dirname
,
'bin'
,
modPath
,
'binding.node'
));
fs
.
statSync
(
path
.
join
(
__dirname
,
'bin'
,
modPath
,
'binding.node'
));
console
.
log
(
'`'
+
modPath
+
'` exists; testing'
);
console
.
log
(
'`'
+
modPath
+
'` exists; testing'
);
var
total
,
failures
;
var
mocha
=
new
Mocha
({
var
mocha
=
new
Mocha
({
reporter
:
'dot'
,
reporter
:
function
(
stats
)
{
total
=
stats
.
total
;
failures
=
stats
.
failures
;
},
ui
:
'bdd'
,
ui
:
'bdd'
,
timeout
:
999999
timeout
:
999999
});
});
mocha
.
addFile
(
path
.
resolve
(
__dirname
,
'test'
,
'test.js'
));
mocha
.
addFile
(
path
.
resolve
(
__dirname
,
'test'
,
'test.js'
));
mocha
.
run
(
function
(
done
)
{
mocha
.
run
(
function
()
{
if
(
done
!==
0
)
{
// at least 90% of tests should pass
if
((
total
-
failures
)
*
100
/
total
<
90
)
{
console
.
log
(
'Problem with the binary; manual build incoming'
);
console
.
log
(
'Problem with the binary; manual build incoming'
);
console
.
log
(
'Please consider contributing the release binary to https://github.com/sass/node-sass-binaries for npm distribution.'
);
console
.
log
(
'Please consider contributing the release binary to https://github.com/sass/node-sass-binaries for npm distribution.'
);
build
();
build
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment