2016-08-09 19:38:37 +00:00
|
|
|
language: go
|
|
|
|
go:
|
2018-07-02 19:53:18 +00:00
|
|
|
- 1.10.2
|
2016-08-09 19:38:37 +00:00
|
|
|
|
|
|
|
# Don't want default ./... here:
|
2016-08-25 20:12:57 +00:00
|
|
|
install:
|
|
|
|
- export PATH=$GOPATH/bin:$PATH
|
|
|
|
- mkdir -p $HOME/gopath/src/k8s.io
|
2018-04-26 21:05:27 +00:00
|
|
|
- mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/website && cd $HOME/gopath/src/k8s.io/website
|
2018-07-11 15:43:25 +00:00
|
|
|
|
2018-04-26 21:05:27 +00:00
|
|
|
# Make sure we are testing against the correct branch
|
2018-07-11 15:43:25 +00:00
|
|
|
- pushd $GOPATH/src/k8s.io && git clone https://github.com/kubernetes/kubernetes && popd
|
2018-07-02 19:53:18 +00:00
|
|
|
- pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.11 && popd
|
2017-05-17 01:09:37 +00:00
|
|
|
- cp -L -R $GOPATH/src/k8s.io/kubernetes/vendor/ $GOPATH/src/
|
|
|
|
- rm -r $GOPATH/src/k8s.io/kubernetes/vendor/
|
2017-02-16 00:06:49 +00:00
|
|
|
|
2018-07-11 15:43:25 +00:00
|
|
|
# Fetch additional dependencies to run the tests in examples/examples_test.go
|
|
|
|
- go get -t -v k8s.io/website/content/en/examples
|
|
|
|
|
2016-08-25 20:12:57 +00:00
|
|
|
script:
|
2018-07-11 15:43:25 +00:00
|
|
|
- go test -v k8s.io/website/content/en/examples
|
2018-05-05 16:00:51 +00:00
|
|
|
#- ./verify-docs-format.sh
|