mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 15:14:03 +03:00
Update build files
This commit is contained in:
+1
-6
@@ -5,8 +5,7 @@ sudo: false
|
|||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- "1.9.x"
|
- "1.11.x"
|
||||||
- "1.10.x"
|
|
||||||
- master
|
- master
|
||||||
|
|
||||||
before_script: make prepare
|
before_script: make prepare
|
||||||
@@ -17,10 +16,6 @@ script:
|
|||||||
- make critic
|
- make critic
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- vendor
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- go: master
|
- go: master
|
||||||
|
|||||||
+2
-9
@@ -1,7 +1,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# BUILD STAGE
|
# BUILD STAGE
|
||||||
|
|
||||||
FROM golang:1.10-alpine
|
FROM golang:1.11-alpine
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk --no-cache --update add \
|
&& apk --no-cache --update add \
|
||||||
@@ -13,14 +13,7 @@ RUN set -x \
|
|||||||
upx \
|
upx \
|
||||||
&& update-ca-certificates
|
&& update-ca-certificates
|
||||||
|
|
||||||
COPY Gopkg.toml Gopkg.lock Makefile /go/src/github.com/9seconds/mtg/
|
COPY . /go/src/github.com/9seconds/mtg/
|
||||||
|
|
||||||
RUN set -x && \
|
|
||||||
cd /go/src/github.com/9seconds/mtg && \
|
|
||||||
make -j 4 prepare && \
|
|
||||||
make vendor
|
|
||||||
|
|
||||||
COPY . /go/src/github.com/9seconds/mtg
|
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& cd /go/src/github.com/9seconds/mtg \
|
&& cd /go/src/github.com/9seconds/mtg \
|
||||||
|
|||||||
Reference in New Issue
Block a user