Skip to content

Commit

Permalink
Updating travis config (#17)
Browse files Browse the repository at this point in the history
Adding support for binary releases, Go 1.15. Temporarily disabling Windows.
  • Loading branch information
c0sco authored Aug 23, 2020
1 parent e4fece2 commit 9fcb008
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ language: go
os:
- linux
- osx
- windows
# - windows

env:
- GO111MODULE=on

go:
- 1.14.x
- 1.15.x

install:
- GO111MODULE=off go get -v github.com/codeclimate/test-reporter
Expand All @@ -25,11 +25,21 @@ before_script:
script:
- make test
- make
- DIST_NAME="ggft_${TRAVIS_OS_NAME}" make dist

after_script:
- |-
case $TRAVIS_OS_NAME in
linux)
test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT
esac
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: "ggft*.zip"
file_glob: true
skip_cleanup: true
draft: true
on:
tags: true
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ endif
ggft:
go build -v -o $(OUT) -ldflags="-X 'github.com/mjslabs/ggft/cmd.version=$(VERSION)'" $(PKG)

ifeq ($(DIST_NAME),)
DIST_NAME = $(OUT)
endif
.PHONY: dist
dist: ggft
zip $(OUT).zip $(OUT)
zip $(DIST_NAME).zip $(OUT)

.PHONY: install
install: ggft
Expand Down

0 comments on commit 9fcb008

Please sign in to comment.