diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..3f943ca --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: go +go: + - 1.5 +env: + - GIMME_OS=linux GIMME_ARCH=amd64 + - GIMME_OS=darwin GIMME_ARCH=amd64 + - GIMME_OS=windows GIMME_ARCH=amd64 + - GIMME_OS=linux GIMME_ARCH=arm GOARM=6 + - GIMME_OS=linux GIMME_ARCH=arm GOARM=7 +before_install: + - go get github.com/axw/gocov/gocov + - go get github.com/mattn/goveralls + - go get golang.org/x/tools/cmd/cover +script: + - go test -v -covermode=count -coverprofile=coverage.out ./... + - $GOPATH/bin/goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN diff --git a/gov7.go b/gov7.go index be7eaa4..c962628 100644 --- a/gov7.go +++ b/gov7.go @@ -8,6 +8,7 @@ package gov7 #include "v7/v7.c" #cgo CFLAGS: -DV7_NO_FS -DV7_LARGE_AST +#cgo LDFLAGS: -lm */ import "C"