From 67887d6a65451a8338235729f99047bb7586df09 Mon Sep 17 00:00:00 2001 From: Jonathan Reeve Date: Sun, 4 Sep 2016 19:01:43 -0400 Subject: [PATCH 1/6] first steps toward Travis integration --- .travis.yml | 20 ++++++++++++++++++++ _config.yml | 5 +++++ 2 files changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..47c59320 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: ruby +rvm: +- 2.1 + +# Assume bundler is being used, therefore +# the `install` step will run `bundle install` by default. +install: gem install jekyll html-proofer +script: jekyll build && htmlproofer ./_site + +# branch whitelist, only for GitHub Pages +branches: + only: + - gh-pages # test the gh-pages branch + - /pages-(.*)/ # test every branch which starts with "pages-" + +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 diff --git a/_config.yml b/_config.yml index b01fbe01..08fa5e63 100644 --- a/_config.yml +++ b/_config.yml @@ -9,6 +9,11 @@ permalink: none include: ['_pages'] # relative_permalinks: false + +# Since Travis installs gems to /vendor, we have to remove +# this to keep Travis from checking everything in /vendor. +exclude: ['vendor'] + # People Data ----------------------------------------- rollcall: -last-name: Tenen From fe9765ddbcb6885bcb6296a4c116ecb3fdde91e7 Mon Sep 17 00:00:00 2001 From: Jonathan Reeve Date: Sun, 4 Sep 2016 19:06:09 -0400 Subject: [PATCH 2/6] try testing all branches in travis --- .travis.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 47c59320..091b0755 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,12 +7,6 @@ rvm: install: gem install jekyll html-proofer script: jekyll build && htmlproofer ./_site -# branch whitelist, only for GitHub Pages -branches: - only: - - gh-pages # test the gh-pages branch - - /pages-(.*)/ # test every branch which starts with "pages-" - env: global: - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer From 9e0dc6b90dc29c0a8bb626df2b1d19c7efcacc94 Mon Sep 17 00:00:00 2001 From: Jonathan Reeve Date: Sun, 4 Sep 2016 19:12:03 -0400 Subject: [PATCH 3/6] add badge to readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f7333a5a..658bdd66 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ This page describes the file structure and the taxonomy of xpmethod.github.io +[![Build Status](https://travis-ci.org/JonathanReeve/xpmethod.github.io.svg?branch=master)](https://travis-ci.org/JonathanReeve/xpmethod.github.io) + ## Logic Everything is either a post or a page. Pages are in the root folder with a From decd0d04880afe98c9d8a7163a0389faa6757254 Mon Sep 17 00:00:00 2001 From: Jonathan Reeve Date: Sun, 4 Sep 2016 19:13:20 -0400 Subject: [PATCH 4/6] fix readme hierarchy --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 658bdd66..10dd9ccd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ -This page describes the file structure and the taxonomy of xpmethod.github.io - +#xpmethod.github.io [![Build Status](https://travis-ci.org/JonathanReeve/xpmethod.github.io.svg?branch=master)](https://travis-ci.org/JonathanReeve/xpmethod.github.io) +This page describes the file structure and the taxonomy of xpmethod.github.io + ## Logic Everything is either a post or a page. Pages are in the root folder with a From 2a0c5e24e050765b06b8c6cbb2864d180729b3b2 Mon Sep 17 00:00:00 2001 From: Jonathan Reeve Date: Sun, 4 Sep 2016 19:18:05 -0400 Subject: [PATCH 5/6] ignore missing alt tags for now --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 091b0755..5fcfbb81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ rvm: # Assume bundler is being used, therefore # the `install` step will run `bundle install` by default. -install: gem install jekyll html-proofer +install: gem install jekyll html-proofer --empty-alt-ignore script: jekyll build && htmlproofer ./_site env: From 47fae3b6f645dce3d48e316d5e36012bf7e819a0 Mon Sep 17 00:00:00 2001 From: Jonathan Reeve Date: Sun, 4 Sep 2016 19:37:39 -0400 Subject: [PATCH 6/6] whoops, ignored alt tags in the wrong spot --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5fcfbb81..b0805e47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,8 +4,8 @@ rvm: # Assume bundler is being used, therefore # the `install` step will run `bundle install` by default. -install: gem install jekyll html-proofer --empty-alt-ignore -script: jekyll build && htmlproofer ./_site +install: gem install jekyll html-proofer +script: jekyll build && htmlproofer ./_site --empty-alt-ignore env: global: