lita-snap-ci 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +3 -0
- data/README.md +87 -0
- data/Rakefile +6 -0
- data/lib/lita-snap-ci.rb +12 -0
- data/lib/lita/handlers/snap_ci.rb +45 -0
- data/lib/snap_ci.rb +1 -0
- data/lib/snap_ci/http.rb +20 -0
- data/lib/snap_ci/parser.rb +16 -0
- data/lib/snap_ci/project.rb +63 -0
- data/lib/snap_ci/project_list.rb +23 -0
- data/lita-snap-ci.gemspec +25 -0
- data/locales/en.yml +10 -0
- data/spec/fixtures/api_development.json +107 -0
- data/spec/fixtures/api_master.json +127 -0
- data/spec/fixtures/api_staging.json +107 -0
- data/spec/fixtures/front_master.json +78 -0
- data/spec/fixtures/front_staging.json +81 -0
- data/spec/fixtures/pipelines.json +1 -0
- data/spec/fixtures/snap-ci_report.message +12 -0
- data/spec/fixtures/snap-ci_status.message +4 -0
- data/spec/fixtures/websites_develop.json +107 -0
- data/spec/fixtures/websites_master.json +101 -0
- data/spec/lita/handlers/snap_ci_spec.rb +39 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/support/config.rb +21 -0
- data/spec/support/fixture.rb +37 -0
- data/templates/.gitkeep +0 -0
- metadata +185 -0
@@ -0,0 +1,127 @@
|
|
1
|
+
{
|
2
|
+
"_links": {
|
3
|
+
"self": {
|
4
|
+
"href": ""
|
5
|
+
},
|
6
|
+
"previous": {
|
7
|
+
"href": ""
|
8
|
+
},
|
9
|
+
"latest": {
|
10
|
+
"href": ""
|
11
|
+
},
|
12
|
+
"oldest": {
|
13
|
+
"href": ""
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"_embedded": {
|
17
|
+
"pipelines": [
|
18
|
+
{
|
19
|
+
"_links": {
|
20
|
+
"self": {
|
21
|
+
"href": ""
|
22
|
+
},
|
23
|
+
"latest": {
|
24
|
+
"href": ""
|
25
|
+
},
|
26
|
+
"oldest": {
|
27
|
+
"href": ""
|
28
|
+
},
|
29
|
+
"previous": {
|
30
|
+
"href": ""
|
31
|
+
},
|
32
|
+
"next": {
|
33
|
+
"href": ""
|
34
|
+
},
|
35
|
+
"docs": {
|
36
|
+
"href": ""
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"counter": 37,
|
40
|
+
"result": "passed",
|
41
|
+
"commits": [
|
42
|
+
{
|
43
|
+
"_links": {
|
44
|
+
"github": [
|
45
|
+
{
|
46
|
+
"rel": "api",
|
47
|
+
"href": ""
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"rel": "http",
|
51
|
+
"href": ""
|
52
|
+
}
|
53
|
+
]
|
54
|
+
},
|
55
|
+
"sha": "1f796de91acefadfef21ec11b43d1f54328a5290",
|
56
|
+
"short_sha": "1f796de",
|
57
|
+
"author": "",
|
58
|
+
"message": "",
|
59
|
+
"time": "2016-05-04T01:24:38Z"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"stages": [
|
63
|
+
{
|
64
|
+
"name": "FastFeedback",
|
65
|
+
"full_name": "exampleorg/api (master) :: FastFeedback",
|
66
|
+
"result": "passed",
|
67
|
+
"duration": 131,
|
68
|
+
"workers": [
|
69
|
+
{
|
70
|
+
"counter": 1,
|
71
|
+
"result": "passed",
|
72
|
+
"duration": 116.49985098838806,
|
73
|
+
"artifacts": [
|
74
|
+
|
75
|
+
],
|
76
|
+
"started_at": "2016-05-04T01:24:57Z",
|
77
|
+
"completed_at": "2016-05-04T01:26:53Z"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"started_at": "2016-05-04T01:24:43Z",
|
81
|
+
"completed_at": "2016-05-04T01:26:54Z"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "Integration",
|
85
|
+
"full_name": "exampleorg/api (master) :: Integration",
|
86
|
+
"result": "passed",
|
87
|
+
"duration": 79,
|
88
|
+
"workers": [
|
89
|
+
{
|
90
|
+
"counter": 1,
|
91
|
+
"result": "passed",
|
92
|
+
"duration": 78.41696691513062,
|
93
|
+
"artifacts": [
|
94
|
+
|
95
|
+
],
|
96
|
+
"started_at": "2016-05-04T01:26:55Z",
|
97
|
+
"completed_at": "2016-05-04T01:28:13Z"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"started_at": "2016-05-04T01:26:54Z",
|
101
|
+
"completed_at": "2016-05-04T01:28:13Z"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"name": "deploy_prod",
|
105
|
+
"full_name": "exampleorg/api (master) :: deploy_prod",
|
106
|
+
"result": "unknown",
|
107
|
+
"duration": null,
|
108
|
+
"workers": [
|
109
|
+
{
|
110
|
+
"counter": 1,
|
111
|
+
"result": null,
|
112
|
+
"duration": 0,
|
113
|
+
"artifacts": [
|
114
|
+
|
115
|
+
],
|
116
|
+
"started_at": null,
|
117
|
+
"completed_at": null
|
118
|
+
}
|
119
|
+
],
|
120
|
+
"started_at": null,
|
121
|
+
"completed_at": null
|
122
|
+
}
|
123
|
+
]
|
124
|
+
}
|
125
|
+
]
|
126
|
+
}
|
127
|
+
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
{
|
2
|
+
"_links": {
|
3
|
+
"self": {
|
4
|
+
"href": ""
|
5
|
+
},
|
6
|
+
"previous": {
|
7
|
+
"href": ""
|
8
|
+
},
|
9
|
+
"latest": {
|
10
|
+
"href": ""
|
11
|
+
},
|
12
|
+
"oldest": {
|
13
|
+
"href": ""
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"_embedded": {
|
17
|
+
"pipelines": [
|
18
|
+
{
|
19
|
+
"_links": {
|
20
|
+
"self": {
|
21
|
+
"href": ""
|
22
|
+
},
|
23
|
+
"latest": {
|
24
|
+
"href": ""
|
25
|
+
},
|
26
|
+
"oldest": {
|
27
|
+
"href": ""
|
28
|
+
},
|
29
|
+
"previous": {
|
30
|
+
"href": ""
|
31
|
+
},
|
32
|
+
"next": {
|
33
|
+
"href": ""
|
34
|
+
},
|
35
|
+
"docs": {
|
36
|
+
"href": ""
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"counter": 107,
|
40
|
+
"result": "passed",
|
41
|
+
"commits": [
|
42
|
+
{
|
43
|
+
"_links": {
|
44
|
+
"github": [
|
45
|
+
{
|
46
|
+
"rel": "api",
|
47
|
+
"href": ""
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"rel": "http",
|
51
|
+
"href": ""
|
52
|
+
}
|
53
|
+
]
|
54
|
+
},
|
55
|
+
"sha": "02a8b141f57640c545043f5ede86f26ab4b32b3d",
|
56
|
+
"short_sha": "02a8b14",
|
57
|
+
"author": "",
|
58
|
+
"message": "",
|
59
|
+
"time": "2016-05-19T09:43:56Z"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"stages": [
|
63
|
+
{
|
64
|
+
"name": "Integration",
|
65
|
+
"full_name": "exampleorg/api (staging) :: Integration",
|
66
|
+
"result": "passed",
|
67
|
+
"duration": 233,
|
68
|
+
"workers": [
|
69
|
+
{
|
70
|
+
"counter": 1,
|
71
|
+
"result": "passed",
|
72
|
+
"duration": 218.24218010902405,
|
73
|
+
"artifacts": [
|
74
|
+
|
75
|
+
],
|
76
|
+
"started_at": "2016-05-19T09:47:32Z",
|
77
|
+
"completed_at": "2016-05-19T09:51:11Z"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"started_at": "2016-05-19T09:47:18Z",
|
81
|
+
"completed_at": "2016-05-19T09:51:11Z"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "deploy_staging",
|
85
|
+
"full_name": "exampleorg/api (staging) :: deploy_staging",
|
86
|
+
"result": "passed",
|
87
|
+
"duration": 165,
|
88
|
+
"workers": [
|
89
|
+
{
|
90
|
+
"counter": 1,
|
91
|
+
"result": "passed",
|
92
|
+
"duration": 163.77156615257263,
|
93
|
+
"artifacts": [
|
94
|
+
|
95
|
+
],
|
96
|
+
"started_at": "2016-05-19T09:51:12Z",
|
97
|
+
"completed_at": "2016-05-19T09:53:56Z"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"started_at": "2016-05-19T09:51:11Z",
|
101
|
+
"completed_at": "2016-05-19T09:53:56Z"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
}
|
105
|
+
]
|
106
|
+
}
|
107
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
{
|
2
|
+
"_links": {
|
3
|
+
"self": {
|
4
|
+
"href": ""
|
5
|
+
},
|
6
|
+
"latest": {
|
7
|
+
"href": ""
|
8
|
+
},
|
9
|
+
"oldest": {
|
10
|
+
"href": ""
|
11
|
+
}
|
12
|
+
},
|
13
|
+
"_embedded": {
|
14
|
+
"pipelines": [
|
15
|
+
{
|
16
|
+
"_links": {
|
17
|
+
"self": {
|
18
|
+
"href": ""
|
19
|
+
},
|
20
|
+
"latest": {
|
21
|
+
"href": ""
|
22
|
+
},
|
23
|
+
"oldest": {
|
24
|
+
"href": ""
|
25
|
+
},
|
26
|
+
"docs": {
|
27
|
+
"href": ""
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"counter": 1,
|
31
|
+
"result": "failed",
|
32
|
+
"commits": [
|
33
|
+
{
|
34
|
+
"_links": {
|
35
|
+
"github": [
|
36
|
+
{
|
37
|
+
"rel": "api",
|
38
|
+
"href": ""
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"rel": "http",
|
42
|
+
"href": ""
|
43
|
+
}
|
44
|
+
]
|
45
|
+
},
|
46
|
+
"sha": "7b3074bb28849b2b0bf4495e6dbeac5178b145a4",
|
47
|
+
"short_sha": "7b3074b",
|
48
|
+
"author": "",
|
49
|
+
"message": "",
|
50
|
+
"time": "2016-05-12T10:27:08Z"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"stages": [
|
54
|
+
{
|
55
|
+
"name": "Test",
|
56
|
+
"full_name": "front/bi-etl (master) :: Test",
|
57
|
+
"result": "failed",
|
58
|
+
"duration": 39,
|
59
|
+
"workers": [
|
60
|
+
{
|
61
|
+
"counter": 1,
|
62
|
+
"result": "failed",
|
63
|
+
"duration": 25.212702989578247,
|
64
|
+
"artifacts": [
|
65
|
+
|
66
|
+
],
|
67
|
+
"started_at": "2016-05-12T12:51:02Z",
|
68
|
+
"completed_at": "2016-05-12T12:51:27Z"
|
69
|
+
}
|
70
|
+
],
|
71
|
+
"started_at": "2016-05-12T12:50:48Z",
|
72
|
+
"completed_at": "2016-05-12T12:51:27Z"
|
73
|
+
}
|
74
|
+
]
|
75
|
+
}
|
76
|
+
]
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
{
|
2
|
+
"_links": {
|
3
|
+
"self": {
|
4
|
+
"href": ""
|
5
|
+
},
|
6
|
+
"latest": {
|
7
|
+
"href": ""
|
8
|
+
},
|
9
|
+
"oldest": {
|
10
|
+
"href": ""
|
11
|
+
}
|
12
|
+
},
|
13
|
+
"_embedded": {
|
14
|
+
"pipelines": [
|
15
|
+
{
|
16
|
+
"_links": {
|
17
|
+
"self": {
|
18
|
+
"href": ""
|
19
|
+
},
|
20
|
+
"latest": {
|
21
|
+
"href": ""
|
22
|
+
},
|
23
|
+
"oldest": {
|
24
|
+
"href": ""
|
25
|
+
},
|
26
|
+
"next": {
|
27
|
+
"href": ""
|
28
|
+
},
|
29
|
+
"docs": {
|
30
|
+
"href": ""
|
31
|
+
}
|
32
|
+
},
|
33
|
+
"counter": 1,
|
34
|
+
"result": "failed",
|
35
|
+
"commits": [
|
36
|
+
{
|
37
|
+
"_links": {
|
38
|
+
"github": [
|
39
|
+
{
|
40
|
+
"rel": "api",
|
41
|
+
"href": ""
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"rel": "http",
|
45
|
+
"href": ""
|
46
|
+
}
|
47
|
+
]
|
48
|
+
},
|
49
|
+
"sha": "2628c6ae2e41093e972b681ddb29381920dd25b7",
|
50
|
+
"short_sha": "2628c6a",
|
51
|
+
"author": "",
|
52
|
+
"message": "",
|
53
|
+
"time": "2016-05-10T15:48:20Z"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"stages": [
|
57
|
+
{
|
58
|
+
"name": "EditMe",
|
59
|
+
"full_name": "oneorg/front (staging) :: EditMe",
|
60
|
+
"result": "failed",
|
61
|
+
"duration": 36,
|
62
|
+
"workers": [
|
63
|
+
{
|
64
|
+
"counter": 1,
|
65
|
+
"result": "failed",
|
66
|
+
"duration": 26.20651388168335,
|
67
|
+
"artifacts": [
|
68
|
+
|
69
|
+
],
|
70
|
+
"started_at": "2016-05-12T10:23:45Z",
|
71
|
+
"completed_at": "2016-05-12T10:24:11Z"
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"started_at": "2016-05-12T10:23:35Z",
|
75
|
+
"completed_at": "2016-05-12T10:24:11Z"
|
76
|
+
}
|
77
|
+
]
|
78
|
+
}
|
79
|
+
]
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Project: oneorg/front:
|
2
|
+
staging: failed (EditMe: failed)
|
3
|
+
master: failed (Test: failed)
|
4
|
+
|
5
|
+
Project: otherorg/websites:
|
6
|
+
develop: passed (TEST: passed, Build: passed)
|
7
|
+
master: passed (TEST: passed, Build: passed)
|
8
|
+
|
9
|
+
Project: oneorg/api:
|
10
|
+
development: passed (Integration: passed, Brakeman: passed)
|
11
|
+
master: passed (FastFeedback: passed, Integration: passed, deploy_prod: unknown)
|
12
|
+
staging: passed (Integration: passed, deploy_staging: passed)
|
@@ -0,0 +1,107 @@
|
|
1
|
+
{
|
2
|
+
"_links": {
|
3
|
+
"self": {
|
4
|
+
"href": ""
|
5
|
+
},
|
6
|
+
"previous": {
|
7
|
+
"href": ""
|
8
|
+
},
|
9
|
+
"latest": {
|
10
|
+
"href": ""
|
11
|
+
},
|
12
|
+
"oldest": {
|
13
|
+
"href": ""
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"_embedded": {
|
17
|
+
"pipelines": [
|
18
|
+
{
|
19
|
+
"_links": {
|
20
|
+
"self": {
|
21
|
+
"href": ""
|
22
|
+
},
|
23
|
+
"latest": {
|
24
|
+
"href": ""
|
25
|
+
},
|
26
|
+
"oldest": {
|
27
|
+
"href": ""
|
28
|
+
},
|
29
|
+
"previous": {
|
30
|
+
"href": ""
|
31
|
+
},
|
32
|
+
"next": {
|
33
|
+
"href": ""
|
34
|
+
},
|
35
|
+
"docs": {
|
36
|
+
"href": ""
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"counter": 202,
|
40
|
+
"result": "passed",
|
41
|
+
"commits": [
|
42
|
+
{
|
43
|
+
"_links": {
|
44
|
+
"github": [
|
45
|
+
{
|
46
|
+
"rel": "api",
|
47
|
+
"href": ""
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"rel": "http",
|
51
|
+
"href": ""
|
52
|
+
}
|
53
|
+
]
|
54
|
+
},
|
55
|
+
"sha": "3576e8c8253f9d38f6d585e6240ef3da1c729fbc",
|
56
|
+
"short_sha": "3576e8c",
|
57
|
+
"author": "",
|
58
|
+
"message": "",
|
59
|
+
"time": "2016-06-01T08:34:28Z"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"stages": [
|
63
|
+
{
|
64
|
+
"name": "TEST",
|
65
|
+
"full_name": "otherorg/websites (develop) :: TEST",
|
66
|
+
"result": "passed",
|
67
|
+
"duration": 60,
|
68
|
+
"workers": [
|
69
|
+
{
|
70
|
+
"counter": 1,
|
71
|
+
"result": "passed",
|
72
|
+
"duration": 46.77930283546448,
|
73
|
+
"artifacts": [
|
74
|
+
|
75
|
+
],
|
76
|
+
"started_at": "2016-06-01T08:38:08Z",
|
77
|
+
"completed_at": "2016-06-01T08:38:55Z"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
"started_at": "2016-06-01T08:37:56Z",
|
81
|
+
"completed_at": "2016-06-01T08:38:56Z"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "Build",
|
85
|
+
"full_name": "otherorg/websites (develop) :: Build",
|
86
|
+
"result": "passed",
|
87
|
+
"duration": 602,
|
88
|
+
"workers": [
|
89
|
+
{
|
90
|
+
"counter": 1,
|
91
|
+
"result": "passed",
|
92
|
+
"duration": 588.9215080738068,
|
93
|
+
"artifacts": [
|
94
|
+
|
95
|
+
],
|
96
|
+
"started_at": "2016-06-01T08:59:22Z",
|
97
|
+
"completed_at": "2016-06-01T09:09:11Z"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"started_at": "2016-06-01T08:59:10Z",
|
101
|
+
"completed_at": "2016-06-01T09:09:12Z"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
}
|
105
|
+
]
|
106
|
+
}
|
107
|
+
}
|