@@ -2,20 +2,31 @@ language: go
2
2
go :
3
3
- 1.10.2
4
4
5
- # Don't want default ./... here:
6
- install :
7
- - export PATH=$GOPATH/bin:$PATH
8
- - mkdir -p $HOME/gopath/src/k8s.io
9
- - mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/website && cd $HOME/gopath/src/k8s.io/website
5
+ env :
6
+ - HUGO_VERSION=0.49
10
7
11
- # Make sure we are testing against the correct branch
12
- - pushd $GOPATH/src/k8s.io && git clone https://github.com/kubernetes/kubernetes && popd
13
- - pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.11 && popd
14
- - cp -L -R $GOPATH/src/k8s.io/kubernetes/vendor/ $GOPATH/src/
15
- - rm -r $GOPATH/src/k8s.io/kubernetes/vendor/
8
+ jobs :
9
+ include :
10
+ # Don't want default ./... here:
11
+ - install :
12
+ - export PATH=$GOPATH/bin:$PATH
13
+ - mkdir -p $HOME/gopath/src/k8s.io
14
+ - mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/website && cd $HOME/gopath/src/k8s.io/website
16
15
17
- # Fetch additional dependencies to run the tests in examples/examples_test.go
18
- - go get -t -v k8s.io/website/content/en/examples
16
+ # Make sure we are testing against the correct branch
17
+ - pushd $GOPATH/src/k8s.io && git clone https://github.com/kubernetes/kubernetes && popd
18
+ - pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.11 && popd
19
+ - cp -L -R $GOPATH/src/k8s.io/kubernetes/vendor/ $GOPATH/src/
20
+ - rm -r $GOPATH/src/k8s.io/kubernetes/vendor/
19
21
20
- script :
21
- - go test -v k8s.io/website/content/en/examples
22
+ # Fetch additional dependencies to run the tests in examples/examples_test.go
23
+ - go get -t -v k8s.io/website/content/en/examples
24
+ script :
25
+ - go test -v k8s.io/website/content/en/examples
26
+ - install :
27
+ - curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-64bit.tar.gz | tar -xz
28
+ - mkdir -p ${TRAVIS_HOME}/bin
29
+ - mv hugo ${TRAVIS_HOME}/bin
30
+ - export PATH=${TRAVIS_HOME}/bin:$PATH
31
+ script :
32
+ - hugo
0 commit comments