Permalink
Browse files

Add travis

  • Loading branch information...
1 parent 02542d3 commit b3800eb018ca45b1591eff69d37d0015f0e78340 @rstacruz committed Dec 28, 2015
Showing with 20 additions and 2 deletions.
  1. +16 −0 .travis.yml
  2. +4 −2 package.json
View
@@ -0,0 +1,16 @@
+language: node_js
+node_js:
+- "4.1"
+script:
+- ./node_modules/.bin/docpress build
+after_success:
+- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then ./node_modules/.bin/git-update-ghpages -e; fi
+cache:
+ directories:
+ - node_modules
+env:
+ global:
+ - GIT_NAME: Travis CI
+ - GIT_EMAIL: nobody@nobody.org
+ - GITHUB_REPO: rstacruz/backbone-patterns
+ - GIT_SOURCE: _docpress
View
@@ -20,6 +20,8 @@
},
"homepage": "https://github.com/rstacruz/backbone-patterns#readme",
"devDependencies": {
- "docpress": "0.6.10"
- }
+ "docpress": "0.6.10",
+ "git-update-ghpages": "1.3.0"
+ },
+ "private": true
}

0 comments on commit b3800eb

Please sign in to comment.