From 31b2c806e71284c1f480526c11dfade0131a6f06 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 20 Feb 2015 17:33:44 -0800 Subject: [PATCH] peg version of Docker --- .drone.yml | 5 ++++- Makefile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5a4e0964..182432e5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,10 +5,13 @@ env: - GOROOT=/usr/local/go - PATH=$PATH:$GOROOT/bin:$GOPATH/bin script: + - sudo add-apt-repository ppa:git-core/ppa 1> /dev/null 2> /dev/null - sudo apt-get update 1> /dev/null 2> /dev/null - - sudo apt-get -y install zip libsqlite3-dev sqlite3 rpm 1> /dev/null 2> /dev/null + - sudo apt-get update 1> /dev/null 2> /dev/null + - sudo apt-get -y install git zip libsqlite3-dev sqlite3 rpm 1> /dev/null 2> /dev/null - gem install fpm - rbenv rehash + - make docker - make deps - make test - make test_postgres diff --git a/Makefile b/Makefile index e24c3e70..fe35faef 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,13 @@ ITTERATION := $(shell date +%s) all: build deps: - # which npm && npm -g install uglify-js less autoprefixer go get github.com/GeertJohan/go.rice/rice go get -t -v ./... +docker: + mkdir -p $$GOPATH/src/github.com/docker/docker + git clone --depth=1 --branch=v1.5.0 git://github.com/docker/docker.git $$GOPATH/src/github.com/docker/docker + test: @test -z "$(shell find . -name '*.go' | xargs gofmt -l)" || (echo "Need to run 'go fmt ./...'"; exit 1) go vet ./...