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
4f21cf11
Commit
4f21cf11
authored
Nov 15, 2014
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code: Saves extra nesting.
parent
7bb7ba0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
29 deletions
+31
-29
build.js
scripts/build.js
+31
-29
No files found.
scripts/build.js
View file @
4f21cf11
...
@@ -119,41 +119,43 @@ function testBinary(options) {
...
@@ -119,41 +119,43 @@ function testBinary(options) {
return
build
(
options
);
return
build
(
options
);
}
}
if
(
!
process
.
env
.
SKIP_NODE_SASS_TESTS
)
{
if
(
process
.
env
.
SKIP_NODE_SASS_TESTS
)
{
fs
.
stat
(
path
.
join
(
__dirname
,
'..'
,
'vendor'
,
options
.
bin
,
'binding.node'
),
function
(
err
)
{
return
;
if
(
err
)
{
}
return
build
(
options
);
}
console
.
log
(
'`'
+
options
.
bin
+
'` exists; testing'
);
fs
.
stat
(
path
.
join
(
__dirname
,
'..'
,
'vendor'
,
options
.
bin
,
'binding.node'
),
function
(
err
)
{
if
(
err
)
{
return
build
(
options
);
}
var
total
;
console
.
log
(
'`'
+
options
.
bin
+
'` exists; testing'
);
var
failures
;
var
mocha
=
new
Mocha
({
var
total
;
ui
:
'bdd'
,
var
failures
;
timeout
:
999999
,
var
mocha
=
new
Mocha
({
reporter
:
function
(
stats
)
{
ui
:
'bdd'
,
total
=
stats
.
total
;
timeout
:
999999
,
failures
=
stats
.
failures
;
reporter
:
function
(
stats
)
{
}
total
=
stats
.
total
;
});
failures
=
stats
.
failures
;
}
});
mocha
.
addFile
(
path
.
resolve
(
__dirname
,
'..'
,
'test'
,
'api.js'
));
mocha
.
addFile
(
path
.
resolve
(
__dirname
,
'..'
,
'test'
,
'api.js'
));
mocha
.
run
(
function
()
{
mocha
.
run
(
function
()
{
if
((
total
-
failures
)
*
100
/
total
<
90
)
{
if
((
total
-
failures
)
*
100
/
total
<
90
)
{
console
.
log
([
console
.
log
([
'Problem with the binary: '
+
failures
+
' of '
+
total
+
' tests are failing.'
,
'Problem with the binary: '
+
failures
+
' of '
+
total
+
' tests are failing.'
,
'Manual build incoming.'
,
'Manual build incoming.'
,
'Please consider contributing the release binary to https://github.com/sass/node-sass-binaries for npm distribution.'
'Please consider contributing the release binary to https://github.com/sass/node-sass-binaries for npm distribution.'
].
join
(
'
\
n'
));
].
join
(
'
\
n'
));
return
build
(
options
);
return
build
(
options
);
}
}
console
.
log
(
'Binary is fine; exiting'
);
console
.
log
(
'Binary is fine; exiting'
);
});
});
});
}
}
);
}
}
/**
/**
...
...
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