From 582dfdc6efd5e0d83be4d3def1503382897d8db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matczuk?= Date: Fri, 21 Jul 2017 15:13:09 +0200 Subject: [PATCH] travis integration --- .travis.yml | 20 ++++++++++++++++++++ Makefile | 22 ++++++++++++++++++++++ README.md | 2 +- casssandra_test.go => integration_test.go | 2 ++ 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .travis.yml create mode 100644 Makefile rename casssandra_test.go => integration_test.go (99%) diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..9bef751 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: go + +go: + - 1.8 + - 1.7 + +matrix: + fast_finish: true + +addons: + apt: + packages: + - moreutils + +install: + - sudo service cassandra start + - make get-deps + +script: + - make diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ae22158 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +all: check test + +.PHONY: check +check: + gofmt -s -l . | ifne false + go vet ./... + golint ./... + misspell ./... + ineffassign . + +.PHONY: test +test: + go test -race ./... + go test -tags integration ./... + +.PHONY: get-deps +get-deps: + go get -t ./... + + go get -u github.com/golang/lint/golint + go get -u github.com/client9/misspell/cmd/misspell + go get -u github.com/gordonklaus/ineffassign diff --git a/README.md b/README.md index 5c9e03f..568e2e4 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# gocqlx +# gocqlx [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/mmatczuk/gocqlx) [![Go Report Card](https://goreportcard.com/badge/github.com/mmatczuk/gocqlx)](https://goreportcard.com/report/github.com/mmatczuk/gocqlx) [![Build Status](http://img.shields.io/travis/mmatczuk/gocqlx.svg?style=flat-square)](https://travis-ci.org/mmatczuk/gocqlx) diff --git a/casssandra_test.go b/integration_test.go similarity index 99% rename from casssandra_test.go rename to integration_test.go index 101ae6c..6890536 100644 --- a/casssandra_test.go +++ b/integration_test.go @@ -1,3 +1,5 @@ +// +build all integration + package gocqlx import (