forked from jenkins-x/jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-x-lint.yml
40 lines (40 loc) · 1.34 KB
/
jenkins-x-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
agent:
image: gcr.io/kaniko-project/executor:9912ccbf8d22bbafbf971124600fbb0b13b9cbd6
stages:
- name: ci
environment:
- name: BASE_WORKSPACE
value: /workspace/source
- name: GOPATH
value: /workspace/go
- name: GOPROXY
value: http://jenkins-x-athens-proxy
- name: PATH
value: "/usr/local/git/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/workspace/go/bin"
options:
containerOptions:
resources:
limits:
cpu: 4
memory: 8Gi
requests:
cpu: 3
memory: 6Gi
steps:
- name: fmt
image: golang:1.13.8
command: ./hack/gofmt.sh
dir: /workspace/source
- name: lint
image: golang:1.13.8
command: ./hack/linter.sh
dir: /workspace/source
- name: ensure-test-classification
image: bash
command: ./hack/ensure-test-classification.sh
dir: /workspace/source