From 3315b38c3bcb765c276598ea3413cd8a73c79053 Mon Sep 17 00:00:00 2001 From: Ryan Belgrave Date: Tue, 9 Jan 2018 09:02:47 -0600 Subject: [PATCH] add travis stuff --- .travis.yml | 20 ++++++++++++++++++++ Makefile | 13 +++++++++++-- glide.lock | 6 +++--- glide.yaml | 2 +- 4 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..08350b2 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index b2992f3..c6568ee 100644 --- a/Makefile +++ b/Makefile @@ -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 $@" diff --git a/glide.lock b/glide.lock index 2ac6b8f..1a15e65 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: 1e4417237ea75206a0d6acfacdd48357061d392ed9a5bc0c65599f627d975f96 -updated: 2018-01-08T09:20:35.3137366-06:00 +hash: a82b303eaec38aef73470f1d33eb82b7c3fb7c146592150691a6a0301902286f +updated: 2018-01-09T08:56:04.5642862-06:00 imports: - name: github.com/Azure/go-ntlmssp version: c92175d540060095c69ced311f76aea56c83ecdb @@ -96,7 +96,7 @@ imports: - name: github.com/pkg/sftp version: 30b632cf56a40e07133af5255a01cadc216933ec - name: github.com/sandwichcloud/deli-cli - version: d9f7e15a744e5c2c9a3a67151d3a758c8c268438 + version: 2fb69365253f8bff2b40b68fd15123093ad54ef1 subpackages: - api - api/client diff --git a/glide.yaml b/glide.yaml index af72bf4..86f5201 100644 --- a/glide.yaml +++ b/glide.yaml @@ -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