Skip to content

Commit 4a57c3f

Browse files
author
Brian Muenzenmeyer
committed
Merge pull request #24 from pattern-lab/dev
Travis Integration
2 parents 02834b6 + 8c85752 commit 4a57c3f

File tree

5 files changed

+42
-2
lines changed

5 files changed

+42
-2
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
3+
node_js:
4+
- 0.11
5+
- 0.10
6+
- 0.9
7+
- 0.8
8+
9+
branches:
10+
only:
11+
- dev

Gruntfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ module.exports = function(grunt) {
6464
'./public/styleguide/css/styleguide.css': './public/styleguide/css/styleguide.scss'
6565
}
6666
}
67+
},
68+
qunit: {
69+
files: ["./test/tests.js"]
6770
}
6871
});
6972

@@ -75,4 +78,7 @@ module.exports = function(grunt) {
7578

7679
//if you choose to use scss, or any preprocessor, you can add it here
7780
grunt.registerTask('default', ['clean', 'concat', 'patternlab', /*'sass',*/ 'copy']);
81+
82+
//travis CI task
83+
grunt.registerTask('travis', ['clean', 'concat', 'patternlab', /*'sass',*/ 'copy', 'qunit'])
7884
};

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"version": "0.1.0",
55
"devDependencies": {
66
"grunt": "~0.4.0",
7-
"grunt-contrib-nodeunit": "~0.1.2",
87
"grunt-contrib-watch": "~0.2.0",
98
"grunt-contrib-sass": "~0.2.2",
109
"grunt-contrib-copy": "~0.4.0",
1110
"grunt-contrib-jshint": "~0.4.0",
1211
"grunt-contrib-clean": "~0.5.0",
1312
"grunt-contrib-concat": "~0.3.0",
13+
"grunt-contrib-qunit": "~0.4.0",
1414
"matchdep": "~0.3.0"
1515
},
1616
"keywords": [
@@ -21,5 +21,11 @@
2121
"Javascript"
2222
],
2323
"author": "Brian Muenzenmeyer",
24-
"license": "MIT"
24+
"license": "MIT",
25+
"scripts": {
26+
"test" : "grunt travis --verbose"
27+
},
28+
"engines": {
29+
"node": ">=0.8"
30+
}
2531
}

test/tests.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test( "hello test", function() {
2+
ok( 2 == "2", "Passed!" );
3+
});

test/text.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Hello Tests</title>
6+
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.14.0.css">
7+
</head>
8+
<body>
9+
<div id="qunit"></div>
10+
<div id="qunit-fixture"></div>
11+
<script src="http://code.jquery.com/qunit/qunit-1.14.0.js"></script>
12+
<script src="tests.js"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)