Skip to content

Commit

Permalink
Merge d5dcccb into 70ae3a9
Browse files Browse the repository at this point in the history
  • Loading branch information
alanxoc3 committed Jul 18, 2020
2 parents 70ae3a9 + d5dcccb commit 4731ff4
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@ language: go
sudo: false

go:
- 1.x
- 1.x

env:
- CONCARDS_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))

before_install:
- go get github.com/mattn/goveralls
- go get github.com/mitchellh/gox
- CONCARDS_VERSION="$(git describe --tags $(git rev-list --tags --max-count=1))"

script:
- go test -v ./...
- "$GOPATH/bin/goveralls -service=travis-ci"
- echo Building Concards $CONCARDS_VERSION
- go get github.com/mattn/goveralls
- go test -v ./...
- "$GOPATH/bin/goveralls -service=travis-ci"

before_deploy:
- gox -osarch="linux/386 linux/arm linux/amd64 darwin/386 darwin/amd64" -ldflags "-X main.version=$CONCARDS_VERSION" -output "concards_${CONCARDS_VERSION}_{{.OS}}_{{.Arch}}"
- sha256sum concards_* > sha256_sums.txt
- go get github.com/mitchellh/gox
- gox -osarch="linux/386 linux/arm linux/amd64 darwin/386 darwin/amd64" -ldflags "-X main.version=$CONCARDS_VERSION" -output "concards_${CONCARDS_VERSION}_{{.OS}}_{{.Arch}}"
- sha256sum concards_* > sha256_sums.txt

deploy:
provider: releases
Expand Down

0 comments on commit 4731ff4

Please sign in to comment.