Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 1c027da

Browse files
committed
Build: Run grunt lint on Travis
Ref jquery/api.jquery.com#749
1 parent da9ec5c commit 1c027da

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
@@ -21,7 +21,12 @@ grunt.initConfig({
2121
all: "resources/**"
2222
},
2323
wordpress: (function() {
24-
var config = require( "./config" );
24+
25+
// There's no config for CI, but we don't need one for basic testing
26+
var config = {};
27+
try {
28+
config = require( "./config" );
29+
} catch ( error ) {}
2530
config.dir = "dist/wordpress";
2631
return config;
2732
})()

package.json

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

0 commit comments

Comments
 (0)