Minimal golang runtime. Functions are built as Go plugins, and the plugin is uploaded to fission. See `environments/go/README.md` for instructions and `examples/go` for a usage example. For now, we're re-using the 'code' field of the function to store the binary plugin. With v2 environments, this will be stored separately as a binary package.
21 lines
673 B
YAML
21 lines
673 B
YAML
sudo: required
|
|
dist: trusty
|
|
|
|
language: go
|
|
go:
|
|
- 1.8
|
|
- tip
|
|
|
|
install:
|
|
- go get github.com/Masterminds/glide
|
|
- curl -L https://github.com/coreos/etcd/releases/download/v3.0.15/etcd-v3.0.15-linux-amd64.tar.gz -o /tmp/etcd-v3.0.15-linux-amd64.tar.gz && mkdir -p /tmp/test-etcd && tar xzvf /tmp/etcd-v3.0.15-linux-amd64.tar.gz -C /tmp/test-etcd --strip-components=1
|
|
|
|
script:
|
|
- cd ${TRAVIS_BUILD_DIR}
|
|
- glide install
|
|
- ./fission-bundle/build.sh
|
|
- hack/verify-gofmt.sh
|
|
- /tmp/test-etcd/etcd &
|
|
- go test -v -i $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go')
|
|
- go test -v $(go list ./... | grep -v '/vendor/' | grep -v 'examples/go')
|