Move to own dev image
This commit is contained in:
parent
0111cf2bd4
commit
3f6cb52357
10
.drone.yml
10
.drone.yml
@ -1,14 +1,6 @@
|
|||||||
image: bradrydzewski/go:1.3
|
image: dmp42/go:stable
|
||||||
|
|
||||||
env:
|
|
||||||
- GOROOT=/usr/local/go
|
|
||||||
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go get github.com/axw/gocov/gocov
|
|
||||||
- go get github.com/mattn/goveralls
|
|
||||||
- go get github.com/golang/lint/golint
|
|
||||||
|
|
||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
|
|
||||||
- FAIL=$(find ./ -iname "*.go" -exec gofmt -s -l {} \;) && echo "$FAIL" && test -z "$FAIL"
|
- FAIL=$(find ./ -iname "*.go" -exec gofmt -s -l {} \;) && echo "$FAIL" && test -z "$FAIL"
|
||||||
|
19
project/dev-image/Dockerfile
Normal file
19
project/dev-image/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
|
ENV GOLANG_VERSION 1.4rc1
|
||||||
|
ENV GOPATH /var/cache/drone
|
||||||
|
ENV GOROOT /usr/local/go
|
||||||
|
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin
|
||||||
|
|
||||||
|
ENV LANG C
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
wget ca-certificates git mercurial bzr \
|
||||||
|
--no-install-recommends \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN wget https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz --quiet && \
|
||||||
|
tar -C /usr/local -xzf go$GOLANG_VERSION.linux-amd64.tar.gz && \
|
||||||
|
rm go${GOLANG_VERSION}.linux-amd64.tar.gz
|
||||||
|
|
||||||
|
RUN go get github.com/axw/gocov/gocov github.com/mattn/goveralls github.com/golang/lint/golint
|
Loading…
Reference in New Issue
Block a user