mirror of https://github.com/ceph/go-ceph
ci: update golang in ci
Signed-off-by: Noah Watkins <nwatkins@redhat.com>
This commit is contained in:
parent
6363bf77ae
commit
b389ed391c
|
@ -3,7 +3,6 @@ FROM ubuntu:xenial
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
git \
|
git \
|
||||||
golang-go \
|
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
uuid-runtime \
|
uuid-runtime \
|
||||||
wget
|
wget
|
||||||
|
@ -11,11 +10,14 @@ RUN apt-get update && apt-get install -y \
|
||||||
RUN wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
|
RUN wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
|
||||||
RUN apt-add-repository 'deb https://download.ceph.com/debian-luminous/ xenial main'
|
RUN apt-add-repository 'deb https://download.ceph.com/debian-luminous/ xenial main'
|
||||||
|
|
||||||
|
RUN add-apt-repository ppa:gophers/archive
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
ceph \
|
ceph \
|
||||||
libcephfs-dev \
|
libcephfs-dev \
|
||||||
librados-dev \
|
librados-dev \
|
||||||
librbd-dev
|
librbd-dev \
|
||||||
|
golang-1.10-go
|
||||||
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
WORKDIR /go/src/github.com/ceph/go-ceph
|
WORKDIR /go/src/github.com/ceph/go-ceph
|
||||||
|
|
|
@ -6,7 +6,9 @@ mkdir /tmp/ceph
|
||||||
/micro-osd.sh /tmp/ceph
|
/micro-osd.sh /tmp/ceph
|
||||||
export CEPH_CONF=/tmp/ceph/ceph.conf
|
export CEPH_CONF=/tmp/ceph/ceph.conf
|
||||||
|
|
||||||
go vet ./...
|
export PATH=/usr/lib/go-1.10/bin:$PATH
|
||||||
|
|
||||||
go get -t -v ./...
|
go get -t -v ./...
|
||||||
go list ./...
|
#go vet ./...
|
||||||
|
#go list ./...
|
||||||
go test -v $(go list ./... | grep -v cephfs)
|
go test -v $(go list ./... | grep -v cephfs)
|
||||||
|
|
Loading…
Reference in New Issue