hivedav-website

Website for HiveDAV
git clone https://git.in0rdr.ch/hivedav-website.git
Log | Files | Refs | README | LICENSE

commit 7954af104eaebc25722baf712815145e5eb2faf0
parent 9e05182c779c8e74af3aded4fbb8204f3bf2c953
Author: Heiswayi Nrird <hnrird@gmail.com>
Date:   Sun, 22 Jul 2018 04:05:33 +0800

Added travis-ci

Diffstat:
A.travis.yml | 24++++++++++++++++++++++++
Ascript/cibuild.sh | 5+++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -0,0 +1,24 @@ +language: ruby +rvm: + - 2.4.1 + +before_script: + - chmod +x ./script/cibuild.sh + +script: ./script/cibuild.sh + +# branch whitelist, only for Github pages +# https://jekyllrb.com/docs/continuous-integration/travis-ci/ +branches: + only: + - master + - gh-pages # test gh-pages branch + - /pages-(.*)/ + +env: + global: + - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speed up html-proofer install + +sudo: false # route build to the container-based infrastructure for faster build + +cache: bundler # caching bundler gem packages will speed up build diff --git a/script/cibuild.sh b/script/cibuild.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -e # halt script on error + +bundle exec jekyll build +bundle exec htmlproofer ../_site --disable-external