diff --git a/ci/test.yml b/ci/test.yml new file mode 100644 index 0000000..d6edafb --- /dev/null +++ b/ci/test.yml @@ -0,0 +1,14 @@ +platform: linux + +image_resource: + type: registry-image + source: {repository: rust} + +inputs: +- name: repo + +run: + path: cargo + args: ["test"] + dir: "repo" + diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..b04ac04 --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,13 @@ +resources: +- name: repo + type: git + source: {uri: "http://192.168.0.201:3000/mitchell/school_app_api.git"} + +jobs: +- name: test + plan: + - get: repo + trigger: true + - task: test + file: repo/ci/test.yml +