diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2019-02-06 19:23:56 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2019-02-07 00:27:21 -0800 |
commit | 180ab4c804eb7f99fa2bf8455b6f918ad3dc9219 (patch) | |
tree | ba03ece855b34becf570c9f7c12f9014c17c584f /.travis.yml | |
parent | 4ba6ee3cfe8c3d20f2e12dfefb4abc13f34dfeb6 (diff) |
Add .travis.yml and reconfigure release process
- travis-ci used to publish binaries to the GitHub releases tab on new release
- Will also publish .deb and .rpm packages
- Haven't gotten the checksums file to work yet
- OSX x86 also isn't working
- No longer using goreleaser to publish binaries
- didn't support cgo cross compilation which made things difficult
- Remove obsolete Makefile
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0710119 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,52 @@ +language: go + +go: + - 1.11.x + +os: + - linux + - osx + +git: + depth: 1 + +env: + global: + - NAME=gotop + +install: true +script: + - ./ci/script.sh + +matrix: + include: + # Linux + - env: _GOOS=linux _GOARCH=amd64 + os: linux + - env: _GOOS=linux _GOARCH=386 + os: linux + - env: _GOOS=linux _GOARCH=arm GOARM=5 + os: linux + - env: _GOOS=linux _GOARCH=arm GOARM=6 + os: linux + - env: _GOOS=linux _GOARCH=arm GOARM=7 + os: linux + - env: _GOOS=linux _GOARCH=arm64 + os: linux + + # OSX + - env: _GOOS=darwin _GOARCH=amd64 + os: osx + +deploy: + provider: releases + api_key: $GITHUB_TOKEN + file_glob: true + file: "./dist/*" + skip_cleanup: true + on: + tags: true + +notifications: + email: + on_success: never |