Skip to content

Commit

Permalink
add travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
thrashr888 committed Jul 6, 2015
1 parent 156f13d commit efc6104
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
c2t
coverage.out
/dist
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
sudo: false

language: go

go:
- 1.2
- 1.3
- 1.4
- tip

matrix:
fast_finish: true
allow_failures:
- go: tip

env:
- "PATH=/home/travis/gopath/bin:$PATH"

before_install:
- go get github.com/mitchellh/gox
- gox -build-toolchain -osarch="linux/amd64 darwin/amd64"
- go get github.com/tcnksm/ghr
- 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 ./csv2template/...
- goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN

after_success:
- gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- ghr --username saymedia --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/

0 comments on commit efc6104

Please sign in to comment.