From ef7f92aa778f04e5b0cde2ea1b77218bfe5d7e48 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sun, 8 Dec 2019 19:55:45 -0600 Subject: [PATCH] Adding Concourse pipeline and support script --- pipeline.yml | 34 ++++++++++++++++++++++++++++++++++ scripts/upload_pipeline.sh | 8 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 pipeline.yml create mode 100755 scripts/upload_pipeline.sh diff --git a/pipeline.yml b/pipeline.yml new file mode 100644 index 0000000..51d47a4 --- /dev/null +++ b/pipeline.yml @@ -0,0 +1,34 @@ +--- +resources: + - name: baphomet-js-git + type: git + icon: github-circle + source: + uri: ssh://git@git.nulloctet.com:8437/warricksothr/basphomet-js.git + private_key: | + ((pull_key)) + +jobs: + - name: test + public: true + plan: + - get: baphomet-js-git + trigger: true + - task: run-tests + config: + platform: linux + image_resource: + type: registry-image + source: { repository: node, tag: "13" } + inputs: + - name: baphomet-js-git + run: + path: /bin/sh + args: + - -c + - | + echo "Node Version: $(node --version)" + echo "NPM Version: $(npm --version)" + cd baphomet-js-git + npm install + npm test \ No newline at end of file diff --git a/scripts/upload_pipeline.sh b/scripts/upload_pipeline.sh new file mode 100755 index 0000000..508d65d --- /dev/null +++ b/scripts/upload_pipeline.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +pushd "${DIR}/.." + +fly -t nulloctet set-pipeline --pipeline baphomet-js --config pipeline.yml + +popd \ No newline at end of file -- 2.30.2