Skip to content

Commit

Permalink
Added Travis CI tool
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Feb 10, 2019
1 parent 401a0f8 commit dd0e668
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .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 ./...
4 changes: 3 additions & 1 deletion 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.

Expand Down Expand Up @@ -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"
```
```

0 comments on commit dd0e668

Please sign in to comment.