Permalink
Browse files

Adding Travis to Revolver so it will auto build and test in the future

  • Loading branch information...
jefflembeck committed Oct 24, 2012
1 parent a5360b0 commit 20eaec8ac483c38406d43c204c2f24e7d8b136ae
Showing with 111 additions and 93 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 .travis.yml
  3. +68 −66 grunt.js
  4. +37 −27 package.json
View
@@ -0,0 +1 @@
+node_modules
View
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+ - 0.6
+ - 0.8
+ - 0.9
View
134 grunt.js
@@ -1,72 +1,74 @@
/*global module:false*/
module.exports = function(grunt) {
- // Project configuration.
- grunt.initConfig({
- pkg: '<json:package.json>',
- meta: {
- banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
- '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
- '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
- '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
- ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
- },
- concat: {
- dist: {
- src: [
- '<banner:meta.banner>',
- '<file_strip_banner:src/revolver.core.js>',
- '<file_strip_banner:src/carousel.touchdrag.js>',
- '<file_strip_banner:src/revolver.init.js>'
- ],
- dest: 'dist/<%= pkg.name %>.js'
- }
- },
- min: {
- dist: {
- src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
- dest: 'dist/<%= pkg.name %>.min.js'
- }
- },
- cssmin: {
- dist: {
- src: ['<banner:meta.banner>', 'src/**/*.css'],
- dest: 'dist/<%= pkg.name %>.min.css'
- }
- },
- qunit: {
- files: ['test/**/*.html']
- },
- lint: {
- files: ['grunt.js', 'src/**/*.js', 'test/**/*.js']
- },
- watch: {
- files: '<config:lint.files>',
- tasks: 'lint qunit'
- },
- jshint: {
- options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- boss: true,
- eqnull: true,
- browser: true
- },
- globals: {
- jQuery: true
- }
- },
- uglify: {}
- });
+ // Project configuration.
+ grunt.initConfig({
+ pkg: '<json:package.json>',
+ meta: {
+ banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
+ '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
+ ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
+ },
+ concat: {
+ dist: {
+ src: [
+ '<banner:meta.banner>',
+ '<file_strip_banner:src/revolver.core.js>',
+ '<file_strip_banner:src/carousel.touchdrag.js>',
+ '<file_strip_banner:src/revolver.init.js>'
+ ],
+ dest: 'dist/<%= pkg.name %>.js'
+ }
+ },
+ min: {
+ dist: {
+ src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
+ dest: 'dist/<%= pkg.name %>.min.js'
+ }
+ },
+ cssmin: {
+ dist: {
+ src: ['<banner:meta.banner>', 'src/**/*.css'],
+ dest: 'dist/<%= pkg.name %>.min.css'
+ }
+ },
+ qunit: {
+ files: ['test/**/*.html']
+ },
+ lint: {
+ files: ['grunt.js', 'src/**/*.js', 'test/**/*.js']
+ },
+ watch: {
+ files: '<config:lint.files>',
+ tasks: 'lint qunit'
+ },
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ immed: true,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ boss: true,
+ eqnull: true,
+ browser: true
+ },
+ globals: {
+ jQuery: true
+ }
+ },
+ uglify: {}
+ });
- grunt.loadNpmTasks('grunt-css');
- // Default task.
- grunt.registerTask('default', 'lint qunit concat min cssmin');
+ grunt.loadNpmTasks('grunt-css');
+ // Default task.
+ grunt.registerTask('default', 'lint qunit concat min cssmin');
+ // Travis
+ grunt.registerTask('travis', 'lint qunit');
};
View
@@ -1,28 +1,38 @@
{
- "name": "Revolver",
- "title": "Revolver",
- "description": "A 360° panorama photo viewer.",
- "version": "0.1.0",
- "homepage": "https://github.com/filamentgroup/Revolver",
- "author": {
- "name": "Mat Marquis",
- "email": "mat@matmarquis.com"
- },
- "repository": {
- "type": "git",
- "url": "git@github.com:filamentgroup/Revolver.git"
- },
- "bugs": {
- "url": "https://github.com/filamentgroup/Revolver/issues"
- },
- "licenses": [
- {
- "type": "MIT",
- "url": "https://github.com/filamentgroup/Revolver/blob/master/LICENSE-MIT"
- }
- ],
- "dependencies": {
- "jquery": "~1.5"
- },
- "keywords": []
-}
+ "name": "Revolver",
+ "title": "Revolver",
+ "description": "A 360° panorama photo viewer.",
+ "version": "0.1.0",
+ "homepage": "https://github.com/filamentgroup/Revolver",
+ "author": {
+ "name": "Mat Marquis",
+ "email": "mat@matmarquis.com"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git@github.com:filamentgroup/Revolver.git"
+ },
+ "bugs": {
+ "url": "https://github.com/filamentgroup/Revolver/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://github.com/filamentgroup/Revolver/blob/master/LICENSE-MIT"
+ }
+ ],
+ "main": "dist/Revolver.js",
+ "engines": {
+ "node": ">0.6"
+ },
+ "scripts":{
+ "test" : "grunt travis --verbose"
+ },
+ "dependencies": {
+ "jquery": "~1.7.2"
+ },
+ "devDependencies": {
+ "grunt": "~0.3.17"
+ },
+ "keywords": []
+}

0 comments on commit 20eaec8

Please sign in to comment.