add ci files

This commit is contained in:
Mitchell Marino 2022-12-15 20:15:03 -06:00
parent 626a7ff520
commit 50288abc21
7 changed files with 106 additions and 1 deletions

14
ci/audit.yml Normal file
View 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
View 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
View 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
View 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
View 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
View 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"

View File

@ -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