Skip to content

Commit

Permalink
Merge pull request #3 from beeceej/feature/try-automated-releases
Browse files Browse the repository at this point in the history
add package target, and deploy steps for travisci
  • Loading branch information
beeceej authored Jan 19, 2019
2 parents ec463f9 + 100859b commit 5494add
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ matrix:
script:
- make get-tools
- make test

after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- make package
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file: "inflight-$TRAVIS_TAG.tar.gz"
skip_cleanup: true
on:
tags: true
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ get-tools:

test:
@echo 'run `make get-tools` if you are unable to run this test`'
@go test ./... -race -coverprofile=coverage.txt -covermode=atomic
@go test ./... -race -coverprofile=coverage.txt -covermode=atomic

package:
@echo "+ $@: building tarball"
@cd ../ ; \
tar -pczf "inflight-${TRAVIS_TAG}.tar.gz" --exclude "inflight/.git" inflight ; \
mv "inflight-${TRAVIS_TAG}.tar.gz" inflight

0 comments on commit 5494add

Please sign in to comment.