@ -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:
run:
path: /bin/sh
args:
- -c
- |
echo "Node Version: $(node --version)"
echo "NPM Version: $(npm --version)"
cd baphomet-js-git
npm install
npm test
@ -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