Skip to content

Commit

Permalink
Merge pull request #1 from edvakf/travis
Browse files Browse the repository at this point in the history
Add .travis.yml
  • Loading branch information
edvakf committed Sep 2, 2015
2 parents 9732c6c + f6ac5ef commit 0a17974
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: go
go:
- 1.5
env:
- GIMME_OS=linux GIMME_ARCH=amd64
- GIMME_OS=darwin GIMME_ARCH=amd64 CGO_ENABLED=1
- GIMME_OS=windows GIMME_ARCH=amd64 CGO_ENABLED=1
- GIMME_OS=linux GIMME_ARCH=arm GOARM=6 CGO_ENABLED=1
- GIMME_OS=linux GIMME_ARCH=arm GOARM=7 CGO_ENABLED=1
before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
install:
- go get -d -v ./...
script:
- go test -v -covermode=count -coverprofile=coverage.out ./...
- if [ $GIMME_OS/$GIMME_ARCH == "linux/amd64" ]; then $GOPATH/bin/goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN; fi
3 changes: 2 additions & 1 deletion gov7.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ package gov7
#include <stdlib.h>
#include "v7/v7.c"
#cgo CFLAGS: -DV7_NO_FS -DV7_LARGE_AST
#cgo CFLAGS: -O3 -DV7_NO_FS -DV7_LARGE_AST
#cgo LDFLAGS: -lm
*/
import "C"
Expand Down

0 comments on commit 0a17974

Please sign in to comment.