From 418e8b445462e0203f71c508a644fda1946c7153 Mon Sep 17 00:00:00 2001 From: Vincent Composieux Date: Sun, 10 Feb 2019 10:17:07 +0100 Subject: [PATCH] Added Travis CI tool --- .travis.yml | 16 ++++++++++++++++ README.md | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..328cb90 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: go + +go: + - 1.5 + - 1.6 + - 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 +```