mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
3089fc0ba1
Updates #7777 Added support to allow SourceMap files to be external to the build. In addition added more information when the js compilation has an error. Correctly append sourceMappingURL to output file. Fix merge conflict.
78 lines
1.4 KiB
YAML
78 lines
1.4 KiB
YAML
language: go
|
|
|
|
dist: bionic
|
|
|
|
env:
|
|
global:
|
|
- CACHE_NAME=${TRAVIS_ARCH}
|
|
- GO111MODULE=on
|
|
- GOPROXY=https://proxy.golang.org
|
|
- HUGO_BUILD_TAGS=extended
|
|
|
|
git:
|
|
depth: false
|
|
go:
|
|
- "1.14.8"
|
|
- "1.15.1"
|
|
- master
|
|
|
|
arch:
|
|
- amd64
|
|
- arm64
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
- windows
|
|
|
|
jobs:
|
|
allow_failures:
|
|
- go: master
|
|
- arch: arm64
|
|
fast_finish: true
|
|
exclude:
|
|
- os: windows
|
|
go: master
|
|
- arch: arm64
|
|
os: osx
|
|
- arch: arm64
|
|
os: windows
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/gopath/pkg/mod
|
|
- $HOME/.cache/go-build
|
|
- $HOME/Library/Caches/go-build
|
|
- $HOME/AppData/Local/go-build
|
|
|
|
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
|
|
|
|
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
|
|
- go mod verify
|
|
- travis_wait 20 mage -v test
|
|
- >
|
|
if [ "$TRAVIS_ARCH" = "amd64" ]; then
|
|
mage -v check;
|
|
else
|
|
HUGO_TIMEOUT=30000 mage -v check;
|
|
fi
|
|
- mage -v hugo
|
|
- HUGO_IGNOREERRORS=error-remote-getjson ./hugo -s docs/
|
|
- HUGO_IGNOREERRORS=error-remote-getjson ./hugo --renderToMemory -s docs/
|
|
- df -h
|