diff options
author | Emir Beganović <beganovic.emir@gmail.com> | 2018-11-13 10:39:54 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-13 11:39:54 +0100 |
commit | 7d78a2afd3c4a6c4af77a4ddcbd2a82f15986048 (patch) | |
tree | 61ec3611963bac0fe481b2fc582d79b346deee1f /.travis.yml | |
parent | 5570a6e478e3fb951df0b2bf38f101011f568515 (diff) |
Add Windows build config to Travis
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index efc3758e1..fd5c281fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,8 @@ language: go sudo: false dist: trusty env: - HUGO_BUILD_TAGS="extended" + global: + - HUGO_BUILD_TAGS="extended" git: depth: false go: @@ -11,10 +12,15 @@ go: os: - linux - osx + - windows matrix: allow_failures: - go: tip fast_finish: true + exclude: + - os: windows + go: tip + install: - mkdir -p $HOME/src - mv $HOME/gopath/src/github.com/gohugoio/hugo $HOME/src @@ -22,12 +28,17 @@ install: - cd $HOME/src/hugo - go get github.com/magefile/mage script: -- go mod download -- mage -v test -- mage -v check -- mage -v hugo -- ./hugo -s docs/ -- ./hugo --renderToMemory -s docs/ + - go mod download + - 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 |