Browse Source

Merge pull request #5 from robertbreker/build-releases

Automatically upload builds for releases
getsshkeypath_pr v0.1.1
robertbreker-machineuser 9 years ago
parent
commit
950b655ba0
  1. 22
      .travis.yml
  2. 3
      Makefile

22
.travis.yml

@ -1,7 +1,23 @@
language: go language: go
sudo: false sudo: false
go: go:
- release - tip
script: script:
- make - 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 - 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
Makefile

@ -4,6 +4,7 @@ build:
go build ./... go build ./...
.PHONY: install .PHONY: install
go get ./...
go install ./... go install ./...
.PHONY: clean .PHONY: clean
@ -17,9 +18,9 @@ clean:
.PHONY: release .PHONY: release
release: release:
go get ./...
for arch in 386 amd64 ; do \ for arch in 386 amd64 ; do \
for os in darwin linux ; 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 ; \ GOOS=$$os GOARCH=$$arch go build -o docker-machine-driver-xenserver_$$os-$$arch ; \
done \ done \
done done

Loading…
Cancel
Save