Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,22 @@ branches:
only:
- master
env:
- JQUERIES=1.8.3
- JQUERIES=1.10.2
- JQUERIES=2.0.3
- JQUERIES=git
- TYPES=unit
JQUERIES=1.8.3
- TYPES=unit
JQUERIES=1.10.2
- TYPES=unit
JQUERIES=2.0.3
- TYPES=unit
JQUERIES=git
- TYPES=integration
JQUERIES=1.8.3
- TYPES=integration
JQUERIES=1.10.2
- TYPES=integration
JQUERIES=2.0.3
- TYPES=integration
JQUERIES=git
notifications:
irc:
channels:
Expand Down
17 changes: 12 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,13 +656,20 @@ module.exports = function( grunt ) {
http: {
options: {
urls: (function() {
// Find the test files
var suites = _.without( ( grunt.option( "suites" ) || "" ).split( "," ), "" ),
types = _.without( ( grunt.option( "types" ) || "" ).split( "," ), "" ).sort().reverse(), // So that unit runs before integration
patterns, paths,
var patterns, paths,
suites = ( grunt.option( "suites" ) || process.env.SUITES || "" ).split( "," ),
types = ( grunt.option( "types" ) || process.env.TYPES || "" ).split( "," ),
prefixes = ["tests/unit/", "tests/integration/"],
versionedPaths = [],
jQueries = _.without( ( grunt.option( "jqueries" ) || process.env.JQUERIES || "" ).split( "," ), "" );
jQueries = ( grunt.option( "jqueries" ) || process.env.JQUERIES || "" ).split( "," );

// Trim empties
suites = _.without( suites, "" );
types = _.without( types, "" );
jQueries = _.without( jQueries, "" );

// So that unit suites runs before integration suites
types = types.sort().reverse();

if( types.length ){
prefixes = [];
Expand Down