travis integration
This commit is contained in:
20
.travis.yml
Normal file
20
.travis.yml
Normal file
@@ -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
|
||||
22
Makefile
Normal file
22
Makefile
Normal file
@@ -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
|
||||
@@ -1 +1 @@
|
||||
# gocqlx
|
||||
# gocqlx [](http://godoc.org/github.com/mmatczuk/gocqlx) [](https://goreportcard.com/report/github.com/mmatczuk/gocqlx) [](https://travis-ci.org/mmatczuk/gocqlx)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// +build all integration
|
||||
|
||||
package gocqlx
|
||||
|
||||
import (
|
||||
Reference in New Issue
Block a user