add ci files
This commit is contained in:
parent
626a7ff520
commit
50288abc21
14
ci/audit.yml
Normal file
14
ci/audit.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
platform: linux
|
||||||
|
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source: {repository: rust}
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
- name: repo
|
||||||
|
|
||||||
|
run:
|
||||||
|
path: cargo
|
||||||
|
args: ["test"]
|
||||||
|
dir: "repo"
|
||||||
|
|
||||||
14
ci/build-docker.yml
Normal file
14
ci/build-docker.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
platform: linux
|
||||||
|
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source: {repository: rust}
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
- name: repo
|
||||||
|
|
||||||
|
run:
|
||||||
|
path: cargo
|
||||||
|
args: ["test"]
|
||||||
|
dir: "repo"
|
||||||
|
|
||||||
14
ci/build-linux.yml
Normal file
14
ci/build-linux.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
platform: linux
|
||||||
|
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source: {repository: rust}
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
- name: repo
|
||||||
|
|
||||||
|
run:
|
||||||
|
path: cargo
|
||||||
|
args: ["test"]
|
||||||
|
dir: "repo"
|
||||||
|
|
||||||
14
ci/check-fmt.yml
Normal file
14
ci/check-fmt.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
platform: linux
|
||||||
|
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source: {repository: rust}
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
- name: repo
|
||||||
|
|
||||||
|
run:
|
||||||
|
path: cargo
|
||||||
|
args: ["fmt", "--", "--check"]
|
||||||
|
dir: "repo"
|
||||||
|
|
||||||
14
ci/deploy.yml
Normal file
14
ci/deploy.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
platform: linux
|
||||||
|
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source: {repository: rust}
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
- name: repo
|
||||||
|
|
||||||
|
run:
|
||||||
|
path: cargo
|
||||||
|
args: ["test"]
|
||||||
|
dir: "repo"
|
||||||
|
|
||||||
14
ci/lint.yml
Normal file
14
ci/lint.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
platform: linux
|
||||||
|
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source: {repository: rust}
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
- name: repo
|
||||||
|
|
||||||
|
run:
|
||||||
|
path: cargo
|
||||||
|
args: ["test"]
|
||||||
|
dir: "repo"
|
||||||
|
|
||||||
23
pipeline.yml
23
pipeline.yml
@ -10,4 +10,25 @@ jobs:
|
|||||||
trigger: true
|
trigger: true
|
||||||
- task: test
|
- task: test
|
||||||
file: repo/ci/test.yml
|
file: repo/ci/test.yml
|
||||||
|
- task: check-fmt
|
||||||
|
file: repo/ci/check-fmt.yml
|
||||||
|
- task: lint
|
||||||
|
file: repo/ci/lint.yml
|
||||||
|
- task: audit
|
||||||
|
file: repo/ci/audit.yml
|
||||||
|
- name: build-linux
|
||||||
|
plan:
|
||||||
|
- get: repo
|
||||||
|
trigger: true
|
||||||
|
passed: [test]
|
||||||
|
- task: build-linux
|
||||||
|
file: repo/ci/build-linux.yml
|
||||||
|
- task: build-docker
|
||||||
|
file: repo/ci/build-docker.yml
|
||||||
|
- name: deploy
|
||||||
|
plan:
|
||||||
|
- get: repo
|
||||||
|
trigger: true
|
||||||
|
passed: [test, build]
|
||||||
|
- task: deploy
|
||||||
|
file: repo/ci/deploy.yml
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user