Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
--with ALL build option
Browse files Browse the repository at this point in the history
  • Loading branch information
vibornoff committed Jun 14, 2014
1 parent 37b7880 commit ae8a276
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ addons:
username: vibornoff
access_key:
secure: N5jZowSuf5vPTUSgnYIX4sdFV3u0z/b8DMBSbMzst34VahI428jJlTPfMcswVomflwIA5dO0KgvCvRpKnos4gVIG02PUNYsCSuwg5nBOq025r8PX1nI3tYBK0n1SHHFYQs9swqeiKVVE0bG1AwrIAMNqJS5DnxMBw7z/dM6cPf8=
before_install:
export WITH=ALL
script:
grunt test && grunt sauce
8 changes: 8 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ module.exports = function ( grunt ) {
.map( function ( moduleName ) { return moduleName.trim() } )
.filter( function ( moduleName ) { return moduleName.length > 0 } );

// Check for keyword "ALL"
if ( includeModules.indexOf('ALL') !== -1 ) {
includeModules = [];
for ( var moduleName in modules ) {
includeModules.push(moduleName);
}
}

// No modules specified, put defaults here
if ( includeModules.length === 0 )
includeModules = includeModules.concat(defaults);
Expand Down
6 changes: 6 additions & 0 deletions test/dummy.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,9 @@ else {
skip( "divide with remainder" );
skip( "imul" );
}

test( "Math.random()", function () {
var r = Math.random();
ok( typeof r === 'number', "r is number" );
ok( r >= 0 && r < 1, "0 <= r < 1" );
});
10 changes: 0 additions & 10 deletions test/isaac.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,3 @@ test( "prng", function () {
}
});
*/

///////////////////////////////////////////////////////////////////////////////

module("random");

test( "Math.random()", function () {
var r = Math.random();
ok( typeof r === 'number', "r is number" );
ok( r >= 0 && r < 1, "0 <= r < 1" );
});

0 comments on commit ae8a276

Please sign in to comment.