You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.4 KiB
56 lines
1.4 KiB
---
|
|
resources:
|
|
- name: baphomet-js-git
|
|
type: git
|
|
icon: git
|
|
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
|
|
- name: version
|
|
public: true
|
|
plan:
|
|
- get: baphomet-js-git
|
|
trigger: true
|
|
- task: capture-version
|
|
config:
|
|
platform: linux
|
|
image_resource:
|
|
type: registry-image
|
|
source: { repository: bitnami/git, tag: "2-debian-9"}
|
|
inputs:
|
|
- name: baphomet-js-git
|
|
run:
|
|
path: /bin/sh
|
|
args:
|
|
- -c
|
|
- |
|
|
cd baphomet-js-git
|
|
$(git describe --tags)-$(git rev-parse HEAD)-$(date --rfc-3339=seconds) > VERSION
|
|
outputs:
|
|
- name: versioned-project
|