mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
05d83b6c08
Fixes #6228
46 lines
918 B
YAML
46 lines
918 B
YAML
language: go
|
|
sudo: false
|
|
dist: xenial
|
|
env:
|
|
global:
|
|
- GOPROXY="https://proxy.golang.org"
|
|
- HUGO_BUILD_TAGS="extended"
|
|
git:
|
|
depth: false
|
|
go:
|
|
- "1.11.13"
|
|
- "1.12.9"
|
|
- tip
|
|
os:
|
|
- linux
|
|
- osx
|
|
- windows
|
|
matrix:
|
|
allow_failures:
|
|
- go: tip
|
|
fast_finish: true
|
|
exclude:
|
|
- os: windows
|
|
go: tip
|
|
|
|
install:
|
|
- mkdir -p $HOME/src
|
|
- mv $TRAVIS_BUILD_DIR $HOME/src
|
|
- export TRAVIS_BUILD_DIR=$HOME/src/hugo
|
|
- cd $HOME/src/hugo
|
|
- go get github.com/magefile/mage
|
|
script:
|
|
- go mod download || true
|
|
- mage -v test
|
|
- mage -v check
|
|
- mage -v hugo
|
|
- ./hugo -s docs/
|
|
- ./hugo --renderToMemory -s docs/
|
|
- df -h
|
|
|
|
before_install:
|
|
- df -h
|
|
# https://travis-ci.community/t/go-cant-find-gcc-with-go1-11-1-on-windows/293/5
|
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install mingw -y; export PATH=/c/tools/mingw64/bin:"$PATH"; fi
|
|
- gem install asciidoctor
|
|
- type asciidoctor
|