Skip to content

Commit f389f0e

Browse files
committed
Build: Run grunt lint on Travis
Fixes jquery#749
1 parent 3a277cc commit f389f0e

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- "0.12"
4+
before_script:
5+
- npm install -g grunt-cli

Gruntfile.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ grunt.initConfig({
2222
all: "resources/**"
2323
},
2424
wordpress: (function() {
25-
var config = require( "./config" );
25+
26+
// There's no config for CI, but we don't need one for basic testing
27+
var config = {};
28+
try {
29+
config = require( "./config" );
30+
} catch ( error ) {}
2631
config.dir = "dist/wordpress";
2732
return config;
2833
})()

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"url": "https://github.com/jquery/api.jquery.com/blob/master/LICENSE.txt"
2121
}
2222
],
23+
"scripts": {
24+
"test": "grunt lint"
25+
},
2326
"dependencies": {
2427
"grunt": "0.4.5",
2528
"grunt-jquery-content": "2.0.0"

0 commit comments

Comments
 (0)