Browse Source

Merge branch 'cicd_setup' of warricksothr/basphomet-js into develop

pull/7/head
Drew Short 5 years ago
committed by Gitea
parent
commit
6959115d63
  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