-
Notifications
You must be signed in to change notification settings - Fork 9
/
concourse.yml
76 lines (62 loc) · 1.17 KB
/
concourse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
resource_types:
- name: npm
type: docker-image
source:
repository: nolan/concourse-npm-resource
- name: pull-request
type: docker-image
source:
repository: jtarchie/pr
resources:
- name: repo
type: git
source:
uri: https://github.com/ndarilek/node-janus
branch: master
- name: releaseRepo
type: git
source:
uri: https://github.com/ndarilek/node-janus
branch: master
tag_filter: [0-9]*
- name: pull-requests
type: pull-request
source:
access_token: {{github_access_token}}
repo: ndarilek/node-janus
- name: package
type: npm
source:
token: {{npm_token}}
jobs:
- name: test
public: true
plan:
- get: repo
trigger: true
- task: run tests
config:
platform: linux
image_resource:
type: docker-image
source: {repository: node, tag: "5"}
inputs:
- name: repo
run:
path: sh
args:
- -exc
- |
cd repo
npm install
npm test
- name: release
public: true
plan:
- get: releaseRepo
passed: [test]
trigger: true
- put: package
params:
path: releaseRepo
access: public