don't just build, ship
JavaScript CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
examples
img
js
lib
plugin
test
.gitignore
.jshintrc
.project.vim
.travis.yml
Gruntfile.js
LICENSE
README.md
example.html
index.html
package.json

README.md

don't just build, ship

Build Status

these are the slides i used for my talk at jquery conference austin. you can view them here.

i've posted this for reference, but it also serves as an example of the subject matter of my talk: tools that help you ship.

creating a secure github token

one of the ways you can automate the shipping process is deploying your app on every successful travis build. in order to do so, you need to give travis the means to push to your repository. a relatively secure, convenient way to do that is by including an encrypted github api token in your .travis.yml:

  1. create a github api token

  2. encrypt it using travis's secure variables:

npm install -g travis-encrypt
travis-encrypt --repo gh-user-name/gh-repo-name --key GH_TOKEN --value <github token>
> fsqKj4hKmeB8T28xIkrYZqwM6i9CMvOnUUGXcx...
  1. add that to your .travis.yml under the env.global list:
env:
  global:
     - secure: fsqKj4hKmeB8T28xIkrYZqwM6i9CMvOnUUGXcx...

now in your travis build, you can use the GH_TOKEN environment variable to push to your repo:

git clone https://${GH_TOKEN}@github.com/gh-user-name/gh-repo-name.git

image credits