Skip to content

Commit

Permalink
Use GIMME_OS and GIMME_ARCH
Browse files Browse the repository at this point in the history
  • Loading branch information
edvakf committed Sep 2, 2015
1 parent 20f713e commit a2c7a94
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ language: go
go:
- 1.5
env:
- "PATH=/home/travis/gopath/bin:$PATH"
- 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/mitchellh/gox
- 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 ./...
- goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN
after_success:
- gox -cgo -output "dist/{.OS}_{.Arch}_{.Dir}" -osarch "darwin/amd64 linux/amd64"
- ghr --username edvakf --token $GITHUB_TOKEN --replace --prerelease --debug pre-release dist/
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN

0 comments on commit a2c7a94

Please sign in to comment.