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
|
|
|
|
2018-11-19 02:41:58 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: "Testing examples"
|
|
|
|
# Don't want default ./... here:
|
|
|
|
install:
|
|
|
|
- export PATH=$GOPATH/bin:$PATH
|
|
|
|
- mkdir -p $HOME/gopath/src/k8s.io
|
|
|
|
- mv $TRAVIS_BUILD_DIR $HOME/gopath/src/k8s.io/website && cd $HOME/gopath/src/k8s.io/website
|
2017-02-16 00:06:49 +00:00
|
|
|
|
2018-11-19 02:41:58 +00:00
|
|
|
# Make sure we are testing against the correct branch
|
|
|
|
- pushd $GOPATH/src/k8s.io && git clone https://github.com/kubernetes/kubernetes && popd
|
|
|
|
- pushd $GOPATH/src/k8s.io/kubernetes && git checkout release-1.11 && popd
|
|
|
|
- cp -L -R $GOPATH/src/k8s.io/kubernetes/vendor/ $GOPATH/src/
|
|
|
|
- rm -r $GOPATH/src/k8s.io/kubernetes/vendor/
|
2018-07-11 15:43:25 +00:00
|
|
|
|
2018-11-19 02:41:58 +00:00
|
|
|
# Fetch additional dependencies to run the tests in examples/examples_test.go
|
|
|
|
- go get -t -v k8s.io/website/content/en/examples
|
|
|
|
script:
|
|
|
|
- go test -v k8s.io/website/content/en/examples
|
|
|
|
- name: "Hugo build"
|
|
|
|
install:
|
2019-01-15 18:56:39 +00:00
|
|
|
- make travis-hugo-build
|
2018-11-19 02:41:58 +00:00
|
|
|
script:
|
|
|
|
- hugo
|