Skip to content

Commit

Permalink
.travis.yml: Publish tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dsoprea committed Sep 6, 2019
1 parent 6599d4e commit 83dede1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,26 @@ go:
install:
- go get -t ./...
- go get github.com/mattn/goveralls
- go get github.com/mitchellh/gox
script:
- goveralls -v -service=travis-ci -race -package github.com/dsoprea/go-exfat
# Run all tests that we have in the project, including tools. This is
# important since we're actually publishing the tools.
- go test -race ./...
# Just calculate coverage over the main library.
- goveralls -v -service=travis-ci -package github.com/dsoprea/go-exfat
before_deploy:
# - gox -output "build/{{.Dir}}.{{.OS}}-{{.Arch}}" ./...
# TODO(dustin): !! Just build the one tool, to speed-up testing.
- gox -output "build/{{.Dir}}.{{.OS}}-{{.Arch}}" ./cmd/exfat_extract_file
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: $GITHUB_DEPLOY_OAUTH_TOKEN
file_glob: true
file: build/*
overwrite: true
on:
repo: dsoprea/go-exfat
go: 'stable'
tags: true

0 comments on commit 83dede1

Please sign in to comment.