Browse Source

Adding Concourse pipeline and support script

pull/6/head
Drew Short 4 years ago
parent
commit
ef7f92aa77
  1. 34
      pipeline.yml
  2. 8
      scripts/upload_pipeline.sh

34
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

8
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
Loading…
Cancel
Save