From bbabbab0083b5722d442f5d6e2f704afb1ddf773 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 5 Feb 2015 13:47:20 -0700 Subject: [PATCH] Convert .travis.yml to use "gimme" and update to Go 1.4 --- .travis.yml | 14 ++++++-------- Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3391bd5..0fac609 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,19 @@ language: go -# this should be exactly the same as what's in the Dockerfile -go: 1.3 +go: + - 1.4.1 + - 1.3.3 # let us have pretty experimental Docker-based Travis workers sudo: false env: - - _GOOS=linux _GOARCH=amd64 - - _GOOS=darwin _GOARCH=amd64 - - _GOOS=windows _GOARCH=amd64 + - GIMME_OS=linux GIMME_ARCH=amd64 + - GIMME_OS=darwin GIMME_ARCH=amd64 + - GIMME_OS=windows GIMME_ARCH=amd64 install: - env | sort - - gvm cross "$_GOOS" "$_GOARCH" - - export GOOS="$_GOOS" GOARCH="$_GOARCH" - - go env - go get -d -v ./... script: diff --git a/Dockerfile b/Dockerfile index 89066ca..a5a19eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # Dockerfile to cross compile boot2docker-cli -FROM golang:1.3-cross +FROM golang:1.4-cross WORKDIR /go/src/github.com/boot2docker/boot2docker-cli # Download (but not install) dependencies RUN go get -v github.com/BurntSushi/toml -RUN go get -v github.com/ogier/pflag +RUN go get -v github.com/ogier/pflag ADD . /go/src/github.com/boot2docker/boot2docker-cli