/ .travis.yml
.travis.yml
 1  sudo: false # route your build to the container-based infrastructure for a faster build
 2  
 3  language: ruby
 4  
 5  before_install:
 6    - gem install bundler -v '< 2'
 7       
 8  cache:
 9    # Cache Ruby bundles
10    - bundler
11    - directories:
12      - $TRAVIS_BUILD_DIR/tmp/.htmlproofer #https://github.com/gjtorikian/html-proofer/issues/381
13      - /usr/local/lib/python3.3/dist-packages/pip/
14  
15  # Assume bundler is being used, therefore
16  # the `install` step will run `bundle install` by default.
17  script: "bash -ex .travis-ci.sh"
18  
19  env:
20    global:
21    - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
22  
23  matrix:
24    fast_finish: true
25    include:
26      - rvm: 2.3.0
27        env: TASK='htmlproofer'
28      - rvm: 2.3.0
29        env: TASK='htmlproofer-external'
30      - rvm: 2.3.0
31        env: TASK='eip-validator'
32      - python: 3.3
33        env: TASK='codespell'
34        before_script: "sudo pip install urllib3[secure] && sudo pip install codespell"
35    allow_failures:
36      - rvm: 2.3.0
37        env: TASK='htmlproofer-external'
38  
39  notifications:
40    webhooks:
41      urls:
42        - https://ethlab-183014.appspot.com/merge/
43      on_success: always
44  
45  addons:
46    apt:
47      packages:
48        "libcurl4-openssl-dev" # https://github.com/gjtorikian/html-proofer/issues/376#issuecomment-332767999