Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Add HTMLProofer with custom options for Travis
Browse files Browse the repository at this point in the history
* Use more modern APT installation on Travis not requiring `sudo`
* Install `libcurl4-openssl-dev` to prevent HTMLProofer OpenSSL issues
  (gjtorikian/html-proofer#376)
* Use custom HTMLProofer to allow specifying a sensible `timeout` option (the
  `htmlproofer` command-line does not support options)
  • Loading branch information
Dario Berzano committed Feb 20, 2018
1 parent a74eaa4 commit b2af712
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
sudo: required
dist: trusty
addons:
apt:
packages:
- curl
- libcurl4-openssl-dev
- environment-modules
language: python
python:
- "2.7"
Expand All @@ -10,7 +15,6 @@ cache:
directories:
- $HOME/sw/TARS
before_install: |
sudo apt-get install -y curl environment-modules
cd ..
git clone -b IB/v5-06/next https://github.com/alisw/alidist
install: |
Expand Down
2 changes: 1 addition & 1 deletion script/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ time coverage run -a alibuild/aliBuild version
# test the docs
pushd alibuild
jekyll build -s docs -d _site --baseurl .
htmlproofer ./_site
script/custom_htmlproofer.rb
popd
5 changes: 5 additions & 0 deletions script/custom_htmlproofer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env ruby
require 'html-proofer'
HTMLProofer.check_directory("./_site",
:parallel => { :in_processes => 3 },
:typhoeus => { :timeout => 100, :ssl_verifyhost => 2 }).run

0 comments on commit b2af712

Please sign in to comment.