diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-12-04 23:54:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 23:54:28 +0300 |
commit | bd27f5de7ec83f54901b00f159f466e25a8946e0 (patch) | |
tree | 62ef4db1512b64134191f1084af9d686f6aa3e0d | |
parent | 9560aab5002090608568be1ec1e326bffa0e61f2 (diff) |
Improve automated tests
- Cleanup .travis.yml
- Test on multiple versions of Hugo
- Make Travis CI also test branches
- Add HTMLProofer to validate HTML
-rw-r--r-- | .travis.yml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index 4499ff5..818c6ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,17 @@ +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 |