Browse Source

Merge pull request #1 from robertbreker/master

Build and test improvements
getsshkeypath_pr
Robert Breker 9 years ago
parent
commit
8b4e63bf46
  1. 1
      .travis.yml
  2. 25
      Makefile

1
.travis.yml

@ -3,4 +3,5 @@ sudo: false
go: go:
- release - release
script: 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 - gofmtresult=$(gofmt -s -l .); if [[ -n $gofmtresult ]]; then echo -e "Please run \"gofmt -s -w .\" before committing for the below:\n$gofmtresult"; false; fi

25
Makefile

@ -0,0 +1,25 @@
.PHONY: build
build:
go get ./...
go build ./...
.PHONY: install
go install ./...
.PHONY: clean
clean:
if [ -f docker-machine-driver-xenserver ] ; then rm docker-machine-driver-xenserver ; fi
for arch in 386 amd64 ; do \
for os in darwin linux ; do \
if [ -f docker-machine-driver-xenserver_$$os-$$arch ] ; then rm docker-machine-driver-xenserver_$$os-$$arch ; fi ; \
done \
done
.PHONY: release
release:
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
Loading…
Cancel
Save