diff --git a/.travis.yml b/.travis.yml index b9ad8fe..90c5358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,12 @@ cache: bundler rvm: - 2.3.1 -script: bundle exec jekyll build && bundle exec htmlproofer --check-favicon --check-html ./_site +before_script: + - chmod +x ./script/cibuild # ensure script is executable + +# Assume bundler is being used, therefore +# the `install` step will run `bundle install` by default. +script: ./script/cibuild env: global: diff --git a/script/cibuild b/script/cibuild new file mode 100755 index 0000000..9cb127f --- /dev/null +++ b/script/cibuild @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -e # halt script on error + +bundle exec jekyll build +bundle exec htmlproofer --check-favicon --check-html ./_site