Skip to content

Commit

Permalink
Add travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Mar 23, 2018
1 parent a235dd3 commit 6bc36d9
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
set -e # halt script on error

HTMLPROOFER_OPTIONS="./_site --internal-domains=eips.ethereum.org --check-html --check-opengraph --report-missing-names --log-level=:debug"

bundle exec jekyll doctor
bundle exec jekyll build

if [[ $TASK = 'htmlproofer' ]]; then
bundle exec htmlproofer $HTMLPROOFER_OPTIONS --disable-external
elif [[ $TASK = 'htmlproofer-external' ]]; then
bundle exec htmlproofer $HTMLPROOFER_OPTIONS
fi

# Validate GH Pages DNS setup
bundle exec github-pages health-check
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
sudo: false # route your build to the container-based infrastructure for a faster build

language: ruby

# Cache Ruby bundles
cache: bundler

before_script:
- bundle exec github-pages versions

# Assume bundler is being used, therefore
# the `install` step will run `bundle install` by default.
script: "bash -ex .travis-ci.sh"

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

matrix:
fast_finish: true
include:
- rvm: 2.2.5
env: TASK='htmlproofer'
- rvm: 2.2.5
env: TASK='htmlproofer-external'
allow_failures:
- rvm: 2.2.5
env: TASK='htmlproofer-external'
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?

gem "html-proofer", '>=3.3.1'
13 changes: 13 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ GEM
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
colorize (0.8.1)
commonmarker (0.17.9)
ruby-enum (~> 0.5)
concurrent-ruby (1.0.5)
Expand Down Expand Up @@ -78,6 +79,15 @@ GEM
html-pipeline (2.7.1)
activesupport (>= 2)
nokogiri (>= 1.4)
html-proofer (3.8.0)
activesupport (>= 4.2, < 6.0)
addressable (~> 2.3)
colorize (~> 0.8)
mercenary (~> 0.3.2)
nokogiri (~> 1.8.1)
parallel (~> 1.3)
typhoeus (~> 1.3)
yell (~> 2.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.6.2)
Expand Down Expand Up @@ -204,6 +214,7 @@ GEM
mini_portile2 (~> 2.3.0)
octokit (4.8.0)
sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.12.1)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
public_suffix (2.0.5)
Expand Down Expand Up @@ -232,12 +243,14 @@ GEM
tzinfo (1.2.5)
thread_safe (~> 0.1)
unicode-display_width (1.3.0)
yell (2.0.7)

PLATFORMS
ruby

DEPENDENCIES
github-pages
html-proofer (>= 3.3.1)
jekyll (~> 3.6.2)
jekyll-feed (~> 0.6)
minima (~> 2.0)
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ description: >-
Ethereum Improvement Proposals (EIPs) describe standards for the Ethereum
platform, including core protocol specifications, client APIs, and contract
standards.
url: "" # the base hostname & protocol for your site, e.g. http://example.com
url: "http://eips.ethereum.org"
twitter_username: ethereum
github_username: ethereum
header_pages:
Expand Down

0 comments on commit 6bc36d9

Please sign in to comment.