Add travis configuration

This commit is contained in:
Nick Johnson 2018-03-21 18:59:12 +00:00
parent a235dd38b9
commit 6bc36d9b43
5 changed files with 60 additions and 1 deletions

16
.travis-ci.sh Normal file
View File

@ -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
.travis.yml Normal file
View File

@ -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'

View File

@ -28,3 +28,5 @@ gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# Performance-booster for watching directories on Windows # Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform? gem "wdm", "~> 0.1.0" if Gem.win_platform?
gem "html-proofer", '>=3.3.1'

View File

@ -13,6 +13,7 @@ GEM
execjs execjs
coffee-script-source (1.11.1) coffee-script-source (1.11.1)
colorator (1.1.0) colorator (1.1.0)
colorize (0.8.1)
commonmarker (0.17.9) commonmarker (0.17.9)
ruby-enum (~> 0.5) ruby-enum (~> 0.5)
concurrent-ruby (1.0.5) concurrent-ruby (1.0.5)
@ -78,6 +79,15 @@ GEM
html-pipeline (2.7.1) html-pipeline (2.7.1)
activesupport (>= 2) activesupport (>= 2)
nokogiri (>= 1.4) 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) i18n (0.9.5)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
jekyll (3.6.2) jekyll (3.6.2)
@ -204,6 +214,7 @@ GEM
mini_portile2 (~> 2.3.0) mini_portile2 (~> 2.3.0)
octokit (4.8.0) octokit (4.8.0)
sawyer (~> 0.8.0, >= 0.5.3) sawyer (~> 0.8.0, >= 0.5.3)
parallel (1.12.1)
pathutil (0.16.1) pathutil (0.16.1)
forwardable-extended (~> 2.6) forwardable-extended (~> 2.6)
public_suffix (2.0.5) public_suffix (2.0.5)
@ -232,12 +243,14 @@ GEM
tzinfo (1.2.5) tzinfo (1.2.5)
thread_safe (~> 0.1) thread_safe (~> 0.1)
unicode-display_width (1.3.0) unicode-display_width (1.3.0)
yell (2.0.7)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
github-pages github-pages
html-proofer (>= 3.3.1)
jekyll (~> 3.6.2) jekyll (~> 3.6.2)
jekyll-feed (~> 0.6) jekyll-feed (~> 0.6)
minima (~> 2.0) minima (~> 2.0)

View File

@ -18,7 +18,7 @@ description: >-
Ethereum Improvement Proposals (EIPs) describe standards for the Ethereum Ethereum Improvement Proposals (EIPs) describe standards for the Ethereum
platform, including core protocol specifications, client APIs, and contract platform, including core protocol specifications, client APIs, and contract
standards. standards.
url: "" # the base hostname & protocol for your site, e.g. http://example.com url: "http://eips.ethereum.org"
twitter_username: ethereum twitter_username: ethereum
github_username: ethereum github_username: ethereum
header_pages: header_pages: