Permalink
Please sign in to comment.
Browse files
Add travis (#3)
* Adding initial Travis setup Code and approach based on https://github.com/felixrieseberg/travis-jekyll-git with some updates.
- Loading branch information...
Showing
with
45 additions
and 7 deletions.
- +36 −0 .travis.yml
- +2 −0 Gemfile
- +1 −1 README.md
- +2 −0 _config.yml
- +1 −1 _includes/header.html
- +1 −1 _includes/social.html
- +0 −4 _layouts/home.html
- +2 −0 scripts/ci/build.sh
@@ -0,0 +1,36 @@ | |||
# | |||
# | |||
# Based on https://github.com/felixrieseberg/travis-jekyll-git/tree/4a8f6d505a7219b2d50e4d0b64f3ee4774016f5b | |||
# | |||
# | |||
language: ruby | |||
rvm: | |||
- 2.5 | |||
|
|||
install: | |||
- bundle update | |||
- bundle show | |||
- bundle install | |||
- gem install html-proofer jekyll-sitemap | |||
script: | |||
- . scripts/ci/build.sh | |||
- /bin/ls -altr _site | |||
- cat ./_site/feed.xml | |||
|
|||
# branch whitelist | |||
branches: | |||
only: | |||
- gh-pages # test the gh-pages branch | |||
- /pages-(.*)/ # test every branch which starts with "pages-" | |||
- add-travis | |||
|
|||
env: | |||
global: | |||
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer | |||
|
|||
# deploy: | |||
# skip_cleanup: true | |||
# provider: script | |||
# script: scripts/deploy.sh | |||
# on: | |||
# branch: gh-pages |
@@ -0,0 +1,2 @@ | |||
source 'https://rubygems.org' | |||
gem 'github-pages', group: :jekyll_plugins |
@@ -0,0 +1,2 @@ | |||
jekyll build | |||
htmlproofer ./_site |
0 comments on commit
6cfe6a8