Skip to content

Commit

Permalink
Automatically upload builds for releases
Browse files Browse the repository at this point in the history
Also default to build with go tip in Travis to simplify cross-OS-builds

Signed-off-by: Robert Breker <[email protected]>
  • Loading branch information
Robert Breker committed May 14, 2016
1 parent f02d03b commit 490f462
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
language: go
sudo: false
go:
- release
- tip
script:
- make
- gofmtresult=$(gofmt -s -l .); if [[ -n $gofmtresult ]]; then echo -e "Please run \"gofmt -s -w .\" before committing for the below:\n$gofmtresult"; false; fi
- make
- gofmtresult=$(gofmt -s -l .); if [[ -n $gofmtresult ]]; then echo -e "Please run
\"gofmt -s -w .\" before committing for the below:\n$gofmtresult"; false; fi
before_deploy:
- make release
deploy:
provider: releases
api_key:
secure: hUhY3ZB2/eHHi4ah8DlX5C5s3OTlHFc7FmHGuZJveMHfaiqfnhaIwR0AOVLcL1iLWr+7um/Fm/qXwSJtPOlvCgTC6/Q/qxEqUWsD9rQje9NTjGBbGSxe47pwsNCdDVmusrp0xIcBZ1c22SmIBX6tfbDmoaPvLT6oT24BdDWsh/WiGVYuuVSbgmfKXddghA/fK28ksk46dnvKkbX4YtjGT+rRe9Z4cOx81xFuhEcW9bODntIMEIwCWX2jMIyciJwyZfVhGnNrbbLmPeqKhe+/KvxZsAD3oD2eh+te4Pd1UTtBtUlbaqQfhkOKDm9syn+TAaDrUqAIQ6B3qIyxnZmYsg9V4ASt/ha7skG3i/CTDsNv2Cz8KZV0/DuHCtfoMSt7F6rSclxtiOMo3W1kWLXiurA15zunpzr2J/KxJO1ULxAaNsEMN59+30oC7Lv4hr6ZvafzPDIJsB7mpwFbx7djmTrpDYdQoVHbfNGa8HnJFuDH0bRkwSbMpQfkRmhPKnuPd030KW0Igs34Q8PAedOwm9TZ24JDv/W+jmFyrFfrFZmNga667SKXJ2rExbwPvtxJR1eP3pv1K+ckI+XPj9fxJeZCj2f4TAPIrgs6608RGjOkqTI15qP6+rKrAV/+KFUjtw7HsiSgo9k9xl06ZNKFOvIzYVGJ+GN5DWRLDAw+n/E=
skip_cleanup: true
file:
- docker-machine-driver-xenserver_darwin-386
- docker-machine-driver-xenserver_darwin-amd64
- docker-machine-driver-xenserver_linux-386
- docker-machine-driver-xenserver_linux-amd64
on:
repo: xenserver/docker-machine-driver-xenserver
tags: true
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build:
go build ./...

.PHONY: install
go get ./...
go install ./...

.PHONY: clean
Expand All @@ -17,9 +18,9 @@ clean:

.PHONY: release
release:
go get ./...
for arch in 386 amd64 ; do \
for os in darwin linux ; do \
GOOS=$$os GOARCH=$$arch go tool dist install pkg/runtime ; \
GOOS=$$os GOARCH=$$arch go build -o docker-machine-driver-xenserver_$$os-$$arch ; \
done \
done

0 comments on commit 490f462

Please sign in to comment.