Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
language: go

go:
- "1.12"
- "1.12.4"

services:
- docker

env:
- GO111MODULE=on

install:
- sudo apt-get remove postgresql-* -y
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install postgresql-client-11
Expand All @@ -18,8 +21,6 @@ before_script:
- sleep 10
- scripts/setup-db -y
- scripts/setup-test-db -y
- go get -v -u github.com/golang/dep/cmd/dep
- dep ensure -v -vendor-only

script:
- go test -v -race ./...
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM golang:1.12-stretch as builder
FROM golang:1.12.4-stretch as builder

ENV GO111MODULE on
WORKDIR /go/src/github.com/ProgrammingLab/prolab-accounts

RUN curl -Lo grapi https://github.com/izumin5210/grapi/releases/download/v0.3.2/grapi_linux_amd64
RUN curl -Lo grapi https://github.com/izumin5210/grapi/releases/download/v0.4.0/grapi_linux_amd64
RUN chmod +x grapi
RUN go get -v -u github.com/golang/dep/cmd/dep

COPY . .
RUN dep ensure -v -vendor-only
RUN ./grapi build

FROM gcr.io/distroless/base
Expand Down
Loading