Commit bd27f5de authored by Emiel Hollander's avatar Emiel Hollander Committed by GitHub

Improve automated tests

- Cleanup .travis.yml
- Test on multiple versions of Hugo
- Make Travis CI also test branches
- Add HTMLProofer to validate HTML
parent 9560aab5
env:
- HUGO_VERSION="0.50"
- HUGO_VERSION="0.51"
- HUGO_VERSION="0.52"
install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_0.52_Linux-64bit.tar.gz
- tar -xzvf hugo_0.52_Linux-64bit.tar.gz
- chmod +x hugo
- export PATH=$PATH:$PWD
- wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
- tar -xzvf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz
- mv hugo ~/bin/
- hugo version
- gem install html-proofer
- git clone https://github.com/gohugoio/hugoBasicExample.git
- cd hugoBasicExample
- git submodule add -f https://github.com/EmielH/tale-hugo.git themes/tale
- sudo apt-get install -y tree
- tree
script:
- hugo -t tale
- tree
- cd hugoBasicExample
- hugo -t tale-hugo --themesDir ../..
- htmlproofer public --check-html --disable-external --allow-hash-href
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment