add travis

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
pull/3/head
Tonis Tiigi 6 years ago
parent 3467b6ab35
commit 3cac3483fa

@ -0,0 +1,15 @@
dist: trusty
sudo: required
install:
- docker run --name buildkit --rm -d --privileged -p 1234:1234 $REPO_SLUG_ORIGIN --addr tcp://0.0.0.0:1234
- sudo docker cp buildkit:/usr/bin/buildctl /usr/bin/
- export BUILDKIT_HOST=tcp://0.0.0.0:1234
env:
global:
- PLATFORMS="linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x,linux/ppc64le"
- PREFER_BUILDCTL="1"
script:
- make binaries validate-all && TARGETPLATFORM="${PLATFORMS},darwin/amd64,windows/amd64" ./hack/cross

@ -10,7 +10,7 @@ FROM --platform=$BUILDPLATFORM tonistiigi/xx:golang@sha256:6f7d999551dd471b58f70
FROM --platform=$BUILDPLATFORM golang:1.12-alpine AS gobase
COPY --from=xgo / /
RUN apk add --no-cache file
RUN apk add --no-cache file git
ENV GOFLAGS=-mod=vendor
WORKDIR /src

@ -14,7 +14,12 @@ install: binaries
lint:
./hack/lint
validate-vendor:
./hack/validate-vendor
validate-all: lint validate-vendor
vendor:
./hack/update-vendor
.PHONY: vendor lint shell binaries install
.PHONY: vendor lint shell binaries install binaries-cross validate-all

@ -5,6 +5,6 @@ RUN apk add --no-cache git
RUN go get -u gopkg.in/alecthomas/gometalinter.v1 \
&& mv /go/bin/gometalinter.v1 /go/bin/gometalinter \
&& gometalinter --install
WORKDIR /go/src/github.com/moby/buildkit
WORKDIR /go/src/github.com/tonistiigi/buildx
RUN --mount=target=/go/src/github.com/tonistiigi/buildx \
gometalinter --config=gometalinter.json ./...

Loading…
Cancel
Save