3 module.exports = function(grunt) {
5 require('load-grunt-tasks')(grunt);
11 // We use end2end task (which does not start the webserver)
12 // and start the webserver as a separate process
13 // to avoid https://github.com/joyent/libuv/issues/826
16 middleware: function(connect, options) {
18 function(req, resp, next) {
19 // cache get requests to speed up tests on travis
20 if (req.method === 'GET') {
21 resp.setHeader('Cache-control', 'public, max-age=3600');
26 connect.static(options.base)
40 src: 'Source/**/*.js',
41 dest: 'mootools-all.js'
47 only: '<%= grunt.option("file") && "Core/" + grunt.option("file") %>'
49 src: 'Source/**/*.js',
50 dest: 'mootools-nocompat.js'
57 src: 'Specs/<%= grunt.option("module") || "**" %>/<%= grunt.option("file") || "*" %>.js',
58 dest: 'mootools-specs.js'
65 only: '<%= grunt.option("file") && "Specs/" + grunt.option("file") %>'
68 dest: 'mootools-specs.js'
76 captureTimeout: 60000 * 2,
78 frameworks: ['jasmine', 'sinon'],
79 files: ['Tests/Utilities/*.js', 'mootools-*.js'],
81 username: process.env.SAUCE_USERNAME,
82 accessKey: process.env.SAUCE_ACCESS_KEY,
83 testName: 'MooTools-Core'
88 browserName: 'chrome',
93 browserName: 'firefox',
99 platform: 'Windows 2008',
104 browserName: 'safari',
105 platform: 'OS X 10.9',
110 browserName: 'safari',
111 platform: 'OS X 10.8',
116 browserName: 'safari',
118 platform: 'OS X 10.6'
122 browserName: 'safari',
124 platform: 'Windows 7'
128 browserName: 'internet explorer',
129 platform: 'Windows 8.1',
134 browserName: 'internet explorer',
135 platform: 'Windows 8',
140 browserName: 'internet explorer',
141 platform: 'Windows 7',
146 browserName: 'internet explorer',
147 platform: 'Windows 7',
152 browserName: 'internet explorer',
153 platform: 'Windows XP',
158 browserName: 'internet explorer',
159 platform: 'Windows XP',
164 browserName: 'iphone',
165 platform: 'OS X 10.9',
167 deviceOrientation: 'portrait'
171 browserName: 'iphone',
172 platform: 'OS X 10.8',
174 deviceOrientation: 'portrait'
178 browserName: 'iphone',
179 platform: 'OS X 10.8',
181 deviceOrientation: 'portrait'
187 browsers: ['PhantomJS']
208 // safari5_win7, ie11 and ie10 are not loading the test page
218 // ie9, ie8, and ie7 are not loading the test page
228 // ie6 is not loading the test page
247 browsers: ['PhantomJS'],
261 grunt.registerTask('default', ['clean', 'packager:all', 'packager:specs', 'karma:continuous']);
262 grunt.registerTask('nocompat', ['clean', 'packager:nocompat', 'packager:specs-nocompat', 'karma:continuous']);
263 grunt.registerTask('default:travis', [