Skip to content

Commit

Permalink
move gox installation and building to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelk committed Jan 12, 2020
1 parent a976b97 commit cb08c00
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ matrix:
allow_failures:
- go: tip

before_install:
- go get github.com/mitchellh/gox

install:
- # skip

script:
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="${PROJECT}.{{.OS}}.{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi

after_success:
- bash <(curl -s https://codecov.io/bash)

deploy:
provider: releases
skip_cleanup: true
script:
- go get github.com/mitchellh/gox
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="${PROJECT}.{{.OS}}.{{.Arch}}" -ldflags "-X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
api_key:
secure: "h+xBXIsfq54v4dylcyqHtWbSRHuMd6qzhM5FsLsDrHdKIj8j50k4Lb9ofBXBbYR9y0nmWC3bdFHGyKVzbWXniyDJTSUzvWP5GwfVRt2xalAcEUctHUFpOXSiEpB3UJSphgoSu1FG07MluyK6f2Sr/9ijFeZxZfr2i/GndV6rjbF6m3Virm15hnK0W7zIkgGFwqFHhTZAOh9+ArX55ZGa8lL6VyG1YKt3WNCxndGUw0uspzRlGfPQknd4t4kt8R7KsNyjXEnXZf2BSjJj4uS0HxLY0vP2zpTlzWFc5w/9JpR+1fFq2tL6OK3sLzoxnvAy+W66W1bTI03ZZLLgBSOKgc0jp3hebcYKPLpebmp/C/Tm6ZxiB0fKGRq6VkCb6+96qQVWjsrxUtEUNLQo6GLq8x8zJ21iVaV3AGLuq2q3fbHJilmAfvnSROlaGx1Ds++ChhP7FjV2tDkVQGpWDjZGUO1DI63id21W6OXEVGEWz5sbVqoDyOtoLCtiHR4JXo9XzHOsdNcu5iAs3XC1bdPeVCG0wwTAbrYEMiS/4dH/RqXtUS4gXSxD9l1ThMiYf4hj6LXCwXXPi6/9n07IrhvNSWwPyLoWMFc8GIfTVZ6Ec9sYv25uMr/EzErNj5w0IxcQrn9jpgEr3NsNLClRqkPx3pm/VItb+4prf2n7lJ4gjl8="
file:
Expand Down

0 comments on commit cb08c00

Please sign in to comment.