From 4c51440b9723cbdd179f0ebac0f9f6e888897640 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 3 Mar 2014 20:05:44 +0200 Subject: [PATCH] Add initial Travis CI support. --- .travis.yml | 11 +++++++++++ Gruntfile.js | 1 + README.md | 2 +- package.json | 3 +++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a609c17 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: node_js +node_js: + - "0.10" +before_install: + - rvm use 1.9.3 +install: + - npm install -g grunt-cli + - npm install + - gem install --no-document jekyll sass +matrix: + fast_finish: true diff --git a/Gruntfile.js b/Gruntfile.js index 61136d9..090b70c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -165,6 +165,7 @@ module.exports = function(grunt) { grunt.registerTask('validate-html', ['jekyll', 'validation']); grunt.registerTask('default', ['dist']); grunt.registerTask('build', ['dist']); + grunt.registerTask('test', ['dist', 'validate-html']); // Version numbering task. // grunt change-version-number --oldver=A.B.C --newver=X.Y.Z diff --git a/README.md b/README.md index 4c0dde9..e1e6de9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ratchet v2.0.0 [![devDependencies](https://david-dm.org/twbs/ratchet/dev-status.png?theme=shields.io)](https://david-dm.org/twbs/ratchet#info=devDependencies) +# Ratchet v2.0.0 [![Build Status](https://secure.travis-ci.org/twbs/ratchet.png)](http://travis-ci.org/twbs/ratchet) [![devDependencies](https://david-dm.org/twbs/ratchet/dev-status.png?theme=shields.io)](https://david-dm.org/twbs/ratchet#info=devDependencies) Build mobile apps with simple HTML, CSS, and JS components. diff --git a/package.json b/package.json index 9dd1514..645b521 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,9 @@ "url": "https://github.com/twbs/ratchet/issues" }, "license": "MIT", + "scripts": { + "test": "grunt test" + }, "devDependencies": { "grunt": "~0.4.2", "grunt-contrib-concat": "~0.3.0",