diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..fd18f1b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: go + +go: + - 1.7 + - 1.8 + - 1.9 + - "1.10" + - 1.11 + + +install: + - go get github.com/stretchr/testify + +script: go test -v ./... diff --git a/README.md b/README.md index 4c70517..2a1150b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ graphql-go-upload ================= +[![TravisBuildStatus](https://api.travis-ci.org/eko/graphql-go-upload.svg?branch=master)](https://travis-ci.org/eko/graphql-go-upload) [![GoDoc](https://godoc.org/github.com/eko/graphql-go-upload?status.png)](https://godoc.org/github.com/eko/graphql-go-upload) +[![GoReportCard](https://goreportcard.com/badge/github.com/eko/graphql-go-upload)](https://goreportcard.com/badge/github.com/eko/graphql-go-upload) This library exposes a middleware for the [GraphQL-Go](https://github.com/graph-gophers/graphql-go) project in order to expose a new `Upload` scalar type and allow you to send `multipart/form-data` POST requests containing files and fields data. @@ -64,4 +66,4 @@ $ curl http://localhost:8000/graphql \ -F map='{ "file": ["variables.file"], "title": ["variables.title"] }' \ -F file=@myfile.txt \ -F title="My content title" -``` \ No newline at end of file +```