You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

89 lines
1.7 KiB

---
resources:
- name: golang-mock-git
type: git
icon: github
source:
uri: https://github.com/golang/mock.git
- name: golang-1.11.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.11-stretch
- name: golang-1.12.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.12-stretch
- name: golang-1.13.x-image
type: registry-image
icon: docker
source:
repository: golang
tag: 1.13-stretch
task-config: &task-config
platform: linux
inputs:
- name: golang-mock-git
path: go/src/github.com/golang/mock
params:
GO111MODULE: "on"
run:
path: /bin/sh
args:
- -c
- |
GOPATH=$PWD/go
cd go/src/github.com/golang/mock
go vet ./...
go build ./...
go install github.com/golang/mock/mockgen
GO111MODULE=off go get -u golang.org/x/lint/golint
./ci/check_go_fmt.sh
./ci/check_go_lint.sh
./ci/check_go_generate.sh
./ci/check_go_mod.sh
go test -v ./...
jobs:
- name: golang-1.11
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.11.x-image
trigger: true
- task: run-tests
image: golang-1.11.x-image
config:
<< : *task-config
- name: golang-1.12
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.12.x-image
trigger: true
- task: run-tests
image: golang-1.12.x-image
config:
<< : *task-config
- name: golang-1.13
public: true
plan:
- get: golang-mock-git
trigger: true
- get: golang-1.13.x-image
trigger: true
- task: run-tests
image: golang-1.13.x-image
config:
<< : *task-config