Testing GitHub Pages
This site is built with GitHub Pages. Did you know you can test your GitHub Pages with Travis? In this article I’ll describe how to test if your Jekyll site with Travis.
First of, if you’re running you GitHub page with Jekyll you should have a
Gemfile which looks similar to the snippet below.
source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins
Create a new file in the root directory of your project and name it
.travis.yml. Copy and paste the content from the snippet below.
language: ruby rvm: - 2.2 sudo: false script: bundle exec jekyll build
Visit your profile page on Travis and enable your GitHub repository for testing. That’s about it! You should now be able to add a badge to your you
If you want to take it further, you can read more about continuous integration on Jekyll’s documentation page.
Like this article? Reach out to me and say hi on Twitter!
All articles written with ♥ by Vincent Klaiber