test/test.sh: link travis build correctly
@@ -12,10 +12,10 @@ cp test $GOPATH/src/github.com/example-inc
cd $GOPATH/src/github.com/example-inc
operator-sdk new memcached-operator --api-version=cache.example.com/v1alpha1 --kind=Memcached
cd memcached-operator
+rm -rf vendor/github.com/operator-framework/operator-sdk/pkg
+ln -s ${TRAVIS_BUILD_DIR}/pkg vendor/github.com/operator-framework/operator-sdk/pkg
curl https://raw.githubusercontent.com/operator-framework/operator-sdk/master/example/memcached-operator/handler.go.tmpl -o pkg/stub/handler.go
-# mac workaround for head
-tail -r pkg/apis/cache/v1alpha1/types.go | tail -n +7 | tail -r > tmp.txt
-#head -n -6 pkg/apis/cache/v1alpha1/types.go > tmp.txt
+head -n -6 pkg/apis/cache/v1alpha1/types.go > tmp.txt
mv tmp.txt pkg/apis/cache/v1alpha1/types.go
echo 'type MemcachedSpec struct { Size int32 `json:"size"`}' >> pkg/apis/cache/v1alpha1/types.go
echo 'type MemcachedStatus struct {Nodes []string `json:"nodes"`}' >> pkg/apis/cache/v1alpha1/types.go
