Skip to content

Commit

Permalink
Setup travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jblew committed Jul 17, 2019
1 parent 4e9116f commit 9fdec27
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
dist: xenial
language: node_js
language: ruby
rvm:
- 2.4.1
sudo: false
cache: bundler

branches:
except:
- /^v[0-9]/
script:
- ./script/cibuild.sh

before_install:
- npm i -g npm
# branch whitelist, only for GitHub Pages
branches:
only:
- master

install:
- npm i
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer

script:
- NODE_ENV=production npm run build
addons:
apt:
packages:
- libcurl4-openssl-dev
1 change: 1 addition & 0 deletions public/Gemfile → Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ source "https://rubygems.org"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", group: :jekyll_plugins
gem "html-proofer"
13 changes: 13 additions & 0 deletions public/Gemfile.lock → Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ GEM
html-pipeline (2.11.0)
activesupport (>= 2)
nokogiri (>= 1.4)
html-proofer (3.11.0)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
mercenary (~> 0.3.2)
nokogiri (~> 1.9)
parallel (~> 1.3)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -209,9 +218,11 @@ GEM
mini_portile2 (~> 2.4.0)
octokit (4.14.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.17.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.1.0)
rainbow (3.0.0)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
Expand All @@ -237,12 +248,14 @@ GEM
tzinfo (1.2.5)
thread_safe (~> 0.1)
unicode-display_width (1.6.0)
yell (2.2.0)

PLATFORMS
ruby

DEPENDENCIES
github-pages
html-proofer

BUNDLED WITH
2.0.2
7 changes: 7 additions & 0 deletions scripts/cibuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e # fail on error
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../public"
cd "${DIR}"

bundle exec jekyll build
bundle exec htmlproofer ./_site

0 comments on commit 9fdec27

Please sign in to comment.