Skip to content

Commit

Permalink
Fix travis config file
Browse files Browse the repository at this point in the history
Fix travis config file
  • Loading branch information
jiop committed Sep 18, 2016
1 parent 6d99ac5 commit 0870415
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/env bash
set -e # halt script on error
language: ruby
rvm:
- 2.1

before_script:
- chmod +x ./scripts/cibuild # or do this locally and commit

# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script: ./scripts/cibuild

# 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

sudo: false # route your build to the container-based infrastructure for a faster build

bundle exec jekyll build
5 changes: 5 additions & 0 deletions scripts/cibuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e # halt script on error

bundle exec jekyll build
bundle exec htmlproofer ./_site --only-4xx

0 comments on commit 0870415

Please sign in to comment.