Skip to content

Instantly share code, notes, and snippets.

@ir-g
Last active July 18, 2016 02:46
Show Gist options
  • Save ir-g/899139a72dace90bc730 to your computer and use it in GitHub Desktop.
Save ir-g/899139a72dace90bc730 to your computer and use it in GitHub Desktop.
Travis CI for Github Pages
language: ruby
before_install:
- travis_retry gem install jekyll
- travis_retry gem install kramdown
script: jekyll build --safe

Hitting into the occasional error with Github Pages can be irritating, especially if you aren't currently on a device with Jekyll installed, especially when one is aware that it can be easily resolved when you have seen the error. Enter Travis CI, if you sign up to Travis, and then add the following .travis.yml file to your repository, and then go to your "account" section, on there, enable Travis for your Repo, and then get committing! Errors will the be shown on the repo's Travis-CI page.

This was also posted on my website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment