From 0ce53487d94c789e57c60aa75b683f22c6c1ca53 Mon Sep 17 00:00:00 2001 From: Gergely Nemeth Date: Thu, 16 Jan 2014 22:10:06 +0100 Subject: [PATCH] travis begining --- .travis.yml | 4 ++++ README.md | 2 ++ deploy-ghpages.sh | 9 +++++++++ index.html | 3 ++- package.json | 3 ++- 5 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .travis.yml create mode 100755 deploy-ghpages.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4fe3f61 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: +- '0.10' +node build.js \ No newline at end of file diff --git a/README.md b/README.md index 1f49547..028894e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/mikeal/node-meatspace.png)](https://travis-ci.org/mikeal/node-meatspace) + Node.js Meatspace ============== diff --git a/deploy-ghpages.sh b/deploy-ghpages.sh new file mode 100755 index 0000000..7859730 --- /dev/null +++ b/deploy-ghpages.sh @@ -0,0 +1,9 @@ +#!/bin/bash +node build.js +( git init + git config user.name "Travis-CI" + git config user.email "dev@nodemeatspace.com" + git add index.html + git commit -m "Deployed to Github Pages" + git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages >/dev/null +) diff --git a/index.html b/index.html index f877f04..f5857c4 100644 --- a/index.html +++ b/index.html @@ -44,7 +44,8 @@ Fork me on GitHub -

Node.js Meatspace

+

Build Status

+

Node.js Meatspace

This project is to encourage and promote real world in-person events by/for the node.js community.

If you're interested in sharing events in your area and how they're being run, please consider submitting a pull request to knode.io. These projects are partnering to provide a comprehensive view of Node.js events happening at the local user group level and larger conference scale.

Calendar

diff --git a/package.json b/package.json index 75a9a46..a4ef223 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "grunt": "0.4.2" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "deploy": "./deploy-ghpages.sh" }, "repository": { "type": "git",