diary-website

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

commit 6fbd7137261278eb26368a8974b829b4cebc85a3
parent 542589d9eeaa7f23c8ccb9613900b1c85333e129
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