From 5a4fc55d8d12ce8948509a3caa43e98b8629c5de Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Fri, 15 Feb 2013 00:44:54 -0500 Subject: [PATCH 1/5] Add basic Travis CI setup with jshint test. --- .gitignore | 1 + .travis.yml | 3 +++ Makefile | 3 +++ package.json | 11 +++++++++++ 4 files changed, 18 insertions(+) create mode 100644 .travis.yml create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 4d70bc4..477d588 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.min.js !excanvas.min.js +node_modules/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..462fd5b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 0.8 diff --git a/Makefile b/Makefile index b300f1a..2e070d0 100644 --- a/Makefile +++ b/Makefile @@ -7,3 +7,6 @@ all: $(patsubst %.js,%.min.js,$(filter-out %.min.js,$(wildcard *.js))) %.min.js: %.js yui-compressor $< -o $@ + +test: + ./node_modules/.bin/jshint *jquery.flot.js diff --git a/package.json b/package.json new file mode 100644 index 0000000..3382a12 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "Flot", + "version": "0.8.0-alpha", + "main": "jquery.flot.js", + "scripts": { + "test": "make test" + }, + "devDependencies": { + "jshint": "0.9.1" + } +} From 232ad7fbff7365eb7c011d8cbae49e5e8fc7d8db Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Fri, 15 Feb 2013 00:49:56 -0500 Subject: [PATCH 2/5] Fix travis config. YAML forbids tabs. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 462fd5b..baa0031 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,3 @@ language: node_js node_js: - - 0.8 + - 0.8 From 88485f7a3974abc29d9d7afd0a924b3ce13cbab5 Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Fri, 15 Feb 2013 01:00:45 -0500 Subject: [PATCH 3/5] Add build status to README. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c4015d7..e005a1b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# Flot # [![Build Status](//travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot) + ## About ## Flot is a Javascript plotting library for jQuery. From 71d32b67355fc78f2b150a3801f5eaacead293a0 Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Fri, 15 Feb 2013 01:03:05 -0500 Subject: [PATCH 4/5] Fix build status. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e005a1b..d2ea13c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Flot # [![Build Status](//travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot) +# Flot # [![Build status](https://travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot) ## About ## From c39053d845f239bae46054edbe5972114c965506 Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Fri, 15 Feb 2013 01:03:58 -0500 Subject: [PATCH 5/5] Fix README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d2ea13c..e5b922a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Flot # [![Build status](https://travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot) +# Flot [![Build status](https://travis-ci.org/flot/flot.png)](https://travis-ci.org/flot/flot) ## About ##