Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (49 sloc) 2.26 KB
# You must sign into travis-ci.org and set the commit hook on your project for travis to
# run on your project. The secure: variable must be generated by running `travis encrypt`
# on a github oauth key that you can generate using curl.
language:
node_js
node_js:
- 0.8
branches:
only:
- master
env:
global:
# GH_OAUTH_TOKEN is the oauth token generated as described at
# https://help.github.com/articles/creating-an-oauth-token-for-command-line-use
#
# curl -u 'username' -d '{"scopes":["repo"],"note":"push to gh-pages from travis"}' https://api.github.com/authorizations
#
# It must be encrypted using the travis gem
# http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables
#
# travis encrypt GH_OAUTH_TOKEN=XXXXXXXXXXXXXXX
#
# User specific env variables
- secure: "AEA3mm0sP2aJoOFit80qXeIgdBNH6LR3OE45lJyDlRxMYBU4lHnwosZEQAbgWxPwPKC9/MC2CjzsN36NOKIQ8KN4Vg6j8TIK4JDPjViaWe9LvfD2e/Qkb5H3xV58aOm/E+XyFXdH5hYZ4PNUKApLjoi8/WyGrGGPigjdQK9aFag="
- GH_OWNER: pwmckenna
- GH_PROJECT_NAME: mduel
# This .travis.yml file instructs travis-ci.org to build your master branch using `yeoman build`
# and deploy the output to your project's gh-pages branch.
before_script:
# install dependencies
- npm install -g grunt-cli bower
script:
# We want to gate on passing tests and a successful build
- bower install
- grunt
after_success:
# Any command that using GH_OAUTH_TOKEN must pipe the output to /dev/null to not expose your oauth token
- git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1
- cd site
- if git checkout gh-pages; then git checkout -b gh-pages; fi
- git rm -r .
- cp -R ../dist/* .
- cp ../dist/.* .
- git add -f .
- git config user.email "patrick@bittorrent.com"
- git config user.name "Patrick Williams"
- git commit -am "adding the yeoman build files to gh-pages"
# Any command that using GH_OAUTH_TOKEN must pipe the output to /dev/null to not expose your oauth token
- git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages > /dev/null 2>&1
Jump to Line
Something went wrong with that request. Please try again.