Baphomet is the dedicated bot for nulloctet matrix
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.

55 lines
1.4 KiB

  1. ---
  2. resources:
  3. - name: baphomet-js-git
  4. type: git
  5. icon: git
  6. source:
  7. uri: ssh://git@git.nulloctet.com:8437/warricksothr/basphomet-js.git
  8. private_key: |
  9. ((pull_key))
  10. jobs:
  11. - name: test
  12. public: true
  13. plan:
  14. - get: baphomet-js-git
  15. trigger: true
  16. - task: run-tests
  17. config:
  18. platform: linux
  19. image_resource:
  20. type: registry-image
  21. source: { repository: node, tag: "13" }
  22. inputs:
  23. - name: baphomet-js-git
  24. run:
  25. path: /bin/sh
  26. args:
  27. - -c
  28. - |
  29. echo "Node Version: $(node --version)"
  30. echo "NPM Version: $(npm --version)"
  31. cd baphomet-js-git
  32. npm install
  33. npm test
  34. - name: version
  35. public: true
  36. plan:
  37. - get: baphomet-js-git
  38. trigger: true
  39. - task: capture-version
  40. config:
  41. platform: linux
  42. image_resource:
  43. type: registry-image
  44. source: { repository: bitnami/git, tag: "2-debian-9"}
  45. inputs:
  46. - name: baphomet-js-git
  47. run:
  48. path: /bin/sh
  49. args:
  50. - -c
  51. - |
  52. cd baphomet-js-git
  53. $(git describe --tags)-$(git rev-parse HEAD)-$(date --rfc-3339=seconds) > VERSION
  54. outputs:
  55. - name: versioned-project