mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04:00
Facilitate selective running of single CI stages (#9663)
Pass '--target core' to docker build in order to only test core. Pass '--target frontend' to docker build in order to only test frontend. Pass '--target gateway' to docker build in order to only test gateway. Numerical references might be supported in the future: https://github.com/moby/buildkit/issues/1503
This commit is contained in:
parent
d15042470e
commit
5f6d6c3b70
@ -1,7 +1,7 @@
|
|||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
# Stage 1: Build and Unit tests
|
# Stage 0: Build and Unit tests
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
FROM golang:1.13
|
FROM golang:1.13 AS core
|
||||||
|
|
||||||
COPY . /go/src/github.com/minio/minio
|
COPY . /go/src/github.com/minio/minio
|
||||||
WORKDIR /go/src/github.com/minio/minio
|
WORKDIR /go/src/github.com/minio/minio
|
||||||
@ -42,9 +42,9 @@ RUN make verify
|
|||||||
RUN make verify-healing
|
RUN make verify-healing
|
||||||
|
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
# Stage 2: Test Frontend
|
# Stage 1: Test Frontend
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
FROM node:10.15-stretch-slim
|
FROM node:10.15-stretch-slim AS frontend
|
||||||
|
|
||||||
ENV SIMPLE_CI 1
|
ENV SIMPLE_CI 1
|
||||||
|
|
||||||
@ -55,9 +55,9 @@ RUN yarn
|
|||||||
RUN yarn test
|
RUN yarn test
|
||||||
|
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
# Stage 3: Run Gateway Tests
|
# Stage 2: Run Gateway Tests
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
FROM ubuntu:18.04
|
FROM ubuntu:18.04 AS gateway
|
||||||
|
|
||||||
COPY --from=0 /go/src/github.com/minio/minio/minio /usr/bin/minio
|
COPY --from=0 /go/src/github.com/minio/minio/minio /usr/bin/minio
|
||||||
COPY buildscripts/gateway-tests.sh /usr/bin/gateway-tests.sh
|
COPY buildscripts/gateway-tests.sh /usr/bin/gateway-tests.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user