-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.ci.yml
47 lines (45 loc) · 1.15 KB
/
.ci.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
trigger:
branches:
include:
- '**'
mr:
branches:
include:
- '**'
stages:
- stage:
- job:
steps:
- taskType: marketBuild@latest
displayName: 腾讯代码分析(最新)
inputs:
atomCode: CodeccCheckAtomDebug
version: 4.*
data:
input:
languages:
- GOLANG
- JS
checkerSetType: openScan
toolScanType: 0
languageRuleSetMap:
GOLANG_RULE:
- standard_go
- standard_js
- standard_js_preferable
- job:
pool:
container: mirrors.tencent.com/dbpaas/tlinux-2.2-golang-1.15:latest
steps:
- taskType: bash@latest
inputs:
scriptType: SHELL
content: |
#!/bin/bash
go test -gcflags "all=-N -l" --tags=json1 -covermode=atomic ./... -bench . -benchmem --args omit_gorm_debug
- taskType: bash@latest
inputs:
scriptType: SHELL
content: |
#!/bin/bash
go vet -httpresponse -assign -nilfunc -printf -unreachable -atomic ./...