Skip to content

Commit

Permalink
add travis stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed Jan 9, 2018
1 parent cf77579 commit 3315b38
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: go
go:
- 1.8
install:
- curl https://glide.sh/get | sh
- glide install -v
script:
- |
make build-linux;
make build-windows;
make build-osx;
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: dRO5/n2nVLk+Yvj9AIwrKIu6wRygb5WpewGaes72Q/lp7PIHp5cgBOXOjcJTVzKD6XQXGXnHghS+FLcEx5eDGdmt0KebdF1FJ7IjbmP0qtFWUSjONLqQpBddH2OrP4I+nbDwzoZvIdN1+64l9fF2r54PDepJpa3q6lLhYNGAlQu9fazpLb96QhrvPQbvJ6+c3s5qcFiwoFukOyqR6frXf5m56RY8RuaPMBXR4eg78XV/FNswpOdEFhGoUnzAJGpMwMd5+jMESpM7Mci1zvLv5lFnBICMo5gNgWvfUp+Qeo7e3BfqnOuE2+eiPSkMrfJ/kEBxt2dZ5cxHC/Xs4nbii+vq+Wv9LPp2WkpaZeqDXdeemxd8UZ+wEFKf+CLkmt7rPV6AmIYO00TJ97+naz/wx5hTWEvbaMDTSREXHbAjbGWCKINJfutZxqExWnCOf/1Jog+KqKtmtiO/JAFiPaoyLCBgxWthUtrbjp76JChvRwhO495KvWVNR2I/HoolB2Z2mVON0j7fVL7AMN1+Xci/0n39F65GbXmXSDMpbl3QS/iL+0tH3ywfdsYK6IBBPFflA4kQLNuXjLku5K3od05V1GZTsIovQcJZEZfzRPCeDCPbKXhxG1f/fReY/puK7n8jgL6udZpp+gcdALFPYO2XNq8i3Abasd33lmz3XBYQtbw=
file_glob: true
file: bin/*
on:
tags: true
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ build: ## build the go packages
@echo "Running $@"
@go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY} .

build-linux: ## build the go packages for Linux (useful to copy the binary into docker)

build-linux: ## build the go packages for Linux
@echo "Running $@"
@GOOS=linux GOARCH=amd64 go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_linux_amd64 .

build-osx: ## build the go packages for OSX
@echo "Running $@"
@GOOS=darwin GOARCH=amd64 go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_darwin_amd64 .

build-windows: ## build the go packages for Windows
@echo "Running $@"
@GOOS=linux GOARCH=amd64 go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY} .
@GOOS=windows GOARCH=amd64 go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_windows_amd64.exe .

test: ## run test
@echo "Running $@"
Expand Down
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import:
- package: github.com/mitchellh/multistep
version: 391576a156a54cfbb4cf5d5eda40cf6ffa3e3a4d
- package: github.com/sandwichcloud/deli-cli
version: 0.0.8
version: 0.0.10

0 comments on commit 3315b38

Please sign in to comment.