Permalink
Browse files

Adding travis-ci support.

  • Loading branch information...
biomadeira committed Nov 18, 2015
1 parent 378fb4f commit 0bc6a9dd9ad4fa3208ae527cacd79dcda2f64b60
Showing with 47 additions and 3 deletions.
  1. +11 −3 .gitignore
  2. +22 −0 .travis.yml
  3. +2 −0 README.md
  4. +2 −0 _config.yml
  5. +10 −0 bibuild.sh
@@ -1,5 +1,13 @@
# OS X
.DS_Store
*.swp
# Jekyll build
/_site/
.jekyll-metadata
Gemfile.lock
# webstorm
.idea/
_site/
.jekyll-metadata
# others
*.swp
@@ -0,0 +1,22 @@
# from http://jekyllrb.com/docs/continuous-integration/
language: ruby
rvm:
- 2.1
- 2.2
before_script:
- chmod +x ./cibuild.sh # or do this locally and commit
# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script: ./cibuild.sh
# branch whitelist, only for GitHub Pages
branches:
only:
- gh-pages # test the gh-pages branch
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
@@ -1,6 +1,8 @@
# Sustain
[![Build Status](https://secure.travis-ci.org/biomadeira/sustain.png?branch=gh-pages)](http://travis-ci.org/biomadeira/sustain)
Personal blog built with [Bootstrap](http://getbootstrap.com/), powered by [Jekyll](http://jekyllrb.com/) and freely
hosted in [Github pages](https://pages.github.com/).
@@ -27,3 +27,5 @@ disqus: username
google_analytics: UA-69391421-1
# needed for travis-ci build
exclude: [vendor]
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e # halt script on error
source "https://rubygems.org"
gem "jekyll"
gem "html-proofer"
bundle exec jekyll build
bundle exec htmlproof ./_site --disable-external --only-4xx --check-html --check-favicon

0 comments on commit 0bc6a9d

Please sign in to comment.