Skip to content

Commit

Permalink
Simplify travis-ci build
Browse files Browse the repository at this point in the history
This change avoids the need to copy the source out of the GOPATH by
applying GO111MODULE=on as an environment variable. Additionally, avoids
issues with parallel module downloads (see golang/go#26794 and
golang/go#27372) by running 'go mod download' during the install step.
  • Loading branch information
wfscheper committed Sep 15, 2018
1 parent 4b82f74 commit 2c69e26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ go:
os:
- linux
- osx
env:
- GO111MODULE=on
matrix:
allow_failures:
- go: tip
fast_finish: true
install:
- mkdir -p $HOME/src
- mv $HOME/gopath/src/github.com/gohugoio/hugo $HOME/src
- export TRAVIS_BUILD_DIR=$HOME/src/hugo
- cd $HOME/src/hugo
- go get github.com/magefile/mage
- go mod download
script:
- mage -v test
- mage -v check
Expand Down

0 comments on commit 2c69e26

Please sign in to comment.