Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #71 from duck8823/maintenance/update_go
Browse files Browse the repository at this point in the history
Version up golang in CI
  • Loading branch information
duck8823 authored Aug 26, 2018
2 parents 377021a + b6883bc commit 14b086c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .duci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.10-alpine
FROM golang:1.11rc2-alpine
MAINTAINER shunsuke maeda <[email protected]>

RUN apk --update add --no-cache alpine-sdk
Expand All @@ -7,10 +7,10 @@ WORKDIR /go/src/github.com/duck8823/duci

ADD . .

RUN go get golang.org/x/vgo

ENV CC=gcc
ENV CI=duci

ENTRYPOINT ["vgo"]
ENV GO111MODULE=on

ENTRYPOINT ["go"]
CMD ["test", "./..."]
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ services:
language: go
go:
- tip
- "1.10"
- "1.11"

env:
- GO111MODULE=on

cache:
directories:
Expand All @@ -18,12 +21,10 @@ before_script:
- touch ~/.ssh/known_hosts
# for coverage report
- go get github.com/mattn/goveralls
# using vgo for resolve dependencies
- go get golang.org/x/vgo
script:
- vgo test -coverprofile cover.out $(vgo list ./... | grep -v mock_)
- go test -coverprofile cover.out $(go list ./... | grep -v mock_)
after_success:
- if [ "$TRAVIS_GO_VERSION" = "1.10" ]; then goveralls -service=travis-ci -coverprofile=cover.out -ignore=main.go; fi
- if [ "$TRAVIS_GO_VERSION" = "1.11" ]; then goveralls -service=travis-ci -coverprofile=cover.out -ignore=main.go; fi
before_deploy:
- go get all
- go get golang.org/x/sys/windows
Expand All @@ -36,4 +37,4 @@ deploy:
script: goreleaser --release-notes=release-notes.txt
on:
tags: true
condition: $TRAVIS_GO_VERSION = "1.10"
condition: $TRAVIS_GO_VERSION = "1.11"

0 comments on commit 14b086c

Please sign in to comment.