b855bd1d52
So far we have been running tests against the master branch of kubernetes/kubernetes. This is creating quite some problems because the master branch is always moving. We are actually checking the YAML files against a version between 1.10 and 1.11. This PR is attempting to fix the problem by checking out the 'release-1.10' branch before running the tests. We are supposed to change the branch to be used when release-1.11 is out. With this PR (hopefully it works), we will only need to fix the gate every time a new release is out. |
||
---|---|---|
.. | ||
README.md | ||
examples.go | ||
examples_test.go | ||
glossary_test.go |
README.md
Note: These tests are importing code from kubernetes that isn't really meant to be used outside the repo. This causes vendoring problems. As a result, we have to work around those with these lines in the travis config:
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/apiserver
- rm $GOPATH/src/k8s.io/kubernetes/vendor/k8s.io/client-go
- cp -r $GOPATH/src/k8s.io/kubernetes/vendor/* $GOPATH/src/
- rm -rf $GOPATH/src/k8s.io/kubernetes/vendor/*
- cp -r $GOPATH/src/k8s.io/kubernetes/staging/src/* $GOPATH/src/