Use hugo in Travis CI pipeline (#10606)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>pull/11105/head
parent
b82bf96203
commit
51c602d017
15
.travis.yml
15
.travis.yml
|
@ -2,6 +2,12 @@ language: go
|
||||||
go:
|
go:
|
||||||
- 1.10.2
|
- 1.10.2
|
||||||
|
|
||||||
|
env:
|
||||||
|
- HUGO_VERSION=0.49
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- name: "Testing examples"
|
||||||
# Don't want default ./... here:
|
# Don't want default ./... here:
|
||||||
install:
|
install:
|
||||||
- export PATH=$GOPATH/bin:$PATH
|
- export PATH=$GOPATH/bin:$PATH
|
||||||
|
@ -16,6 +22,13 @@ install:
|
||||||
|
|
||||||
# Fetch additional dependencies to run the tests in examples/examples_test.go
|
# Fetch additional dependencies to run the tests in examples/examples_test.go
|
||||||
- go get -t -v k8s.io/website/content/en/examples
|
- go get -t -v k8s.io/website/content/en/examples
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go test -v k8s.io/website/content/en/examples
|
- go test -v k8s.io/website/content/en/examples
|
||||||
|
- name: "Hugo build"
|
||||||
|
install:
|
||||||
|
- curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-64bit.tar.gz | tar -xz
|
||||||
|
- mkdir -p ${TRAVIS_HOME}/bin
|
||||||
|
- mv hugo ${TRAVIS_HOME}/bin
|
||||||
|
- export PATH=${TRAVIS_HOME}/bin:$PATH
|
||||||
|
script:
|
||||||
|
- hugo
|
||||||
|
|
Loading…
Reference in New Issue