Skip to content

Commit

Permalink
chore(ci): use autonomy/golang:1.8.3 for build and test tasks (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Jul 23, 2017
1 parent 44d4ef0 commit 26ff570
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 57 deletions.
19 changes: 3 additions & 16 deletions .conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ script:
pipeline:
stages:
- test
- lint
- build

stages:
Expand All @@ -75,10 +74,6 @@ stages:
tasks:
- build
- test
lint:
tasks:
- build
- lint
build:
tasks:
- build
Expand All @@ -87,7 +82,7 @@ stages:
tasks:
build:
template: |
FROM golang:1.8.3 as build
FROM autonomy/golang:1.8.3 as build
WORKDIR $GOPATH/src/github.com/{{ .Repository }}
COPY ./ ./
{{ if and .Git.IsClean .Git.IsTag }}
Expand All @@ -99,18 +94,10 @@ tasks:
{{ end }}
test:
template: |
FROM golang:1.8.3 as test
WORKDIR $GOPATH/src/github.com/{{ .Repository }}
COPY --from=build $GOPATH/src/github.com/{{ .Repository }} .
RUN chmod +x ./scripts/test.sh; sync; ./scripts/test.sh
lint:
template: |
FROM golang:1.8.3 as lint
FROM autonomy/golang:1.8.3 as test
WORKDIR $GOPATH/src/github.com/{{ .Repository }}
RUN go get -u github.com/alecthomas/gometalinter
RUN gometalinter --install
COPY --from=build $GOPATH/src/github.com/{{ .Repository }} .
RUN chmod +x ./scripts/lint.sh; sync; ./scripts/lint.sh
RUN test.sh
image:
template: |
FROM alpine:3.6 as image
Expand Down
17 changes: 0 additions & 17 deletions scripts/lint.sh

This file was deleted.

24 changes: 0 additions & 24 deletions scripts/test.sh

This file was deleted.

0 comments on commit 26ff570

Please sign in to comment.