mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add Windows build config to Travis
This commit is contained in:
parent
5570a6e478
commit
7d78a2afd3
1 changed files with 18 additions and 7 deletions
13
.travis.yml
13
.travis.yml
|
@ -2,7 +2,8 @@ language: go
|
||||||
sudo: false
|
sudo: false
|
||||||
dist: trusty
|
dist: trusty
|
||||||
env:
|
env:
|
||||||
HUGO_BUILD_TAGS="extended"
|
global:
|
||||||
|
- HUGO_BUILD_TAGS="extended"
|
||||||
git:
|
git:
|
||||||
depth: false
|
depth: false
|
||||||
go:
|
go:
|
||||||
|
@ -11,10 +12,15 @@ go:
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
- windows
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
exclude:
|
||||||
|
- os: windows
|
||||||
|
go: tip
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- mkdir -p $HOME/src
|
- mkdir -p $HOME/src
|
||||||
- mv $HOME/gopath/src/github.com/gohugoio/hugo $HOME/src
|
- mv $HOME/gopath/src/github.com/gohugoio/hugo $HOME/src
|
||||||
|
@ -28,6 +34,11 @@ script:
|
||||||
- mage -v hugo
|
- mage -v hugo
|
||||||
- ./hugo -s docs/
|
- ./hugo -s docs/
|
||||||
- ./hugo --renderToMemory -s docs/
|
- ./hugo --renderToMemory -s docs/
|
||||||
|
- df -h
|
||||||
|
|
||||||
before_install:
|
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
|
- gem install asciidoctor
|
||||||
- type asciidoctor
|
- type asciidoctor
|
||||||
|
|
Loading…
Reference in a new issue