forked from jenkins-x/jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-x-lint.yml
58 lines (58 loc) · 2 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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: 3
memory: 6Gi
requests:
cpu: 2
memory: 2Gi
steps:
- name: fmt
image: golang:1.12.10
command: ./hack/gofmt.sh
dir: /workspace/source
- name: lint
image: golang:1.12.10
command: ./hack/linter.sh
dir: /workspace/source
- name: ensure-test-classification
image: bash
command: ./hack/ensure-test-classification.sh
dir: /workspace/source
- name: mk-jx-project-dir
image: bash
command: mkdir
args:
- -p
- /workspace/go/src/github.com/jenkins-x/jx
- name: copy-jx-project-to-gopath
image: bash
command: cp
args:
- -Rv
- "./"
- "/workspace/go/src/github.com/jenkins-x/jx"
dir: /workspace/source
- name: generate
image: golang:1.12.10
command: ./hack/generate.sh
dir: /workspace/go/src/github.com/jenkins-x/jx