quintocumber 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/plugins/publish_reports.rb +7 -5
- data/lib/quintocumber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e610f9d458216be13fbb2f93ac16aa505d4705be
|
4
|
+
data.tar.gz: 3365c5045a3bac69b13296db6cfae8d398cb8ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6253863357ceb3ea86bdc01dd1a84caa032ae96d595a242339e1bf861d8fd67880c8cc00a8185fb46a8d3f84ed9c77932577fb94241f3bc8a2bfb4aa95712860
|
7
|
+
data.tar.gz: b9abac84ff2c64845cc60aa2ecc2edcfd2782f7577ad215df136f7bb8f7cff15a5ac00a4233a709f901a29a23cbff9ff227d0e3d2cec11c56c995c224318b9dc
|
data/README.md
CHANGED
@@ -30,11 +30,13 @@ Install development external dependencies:
|
|
30
30
|
* Allure CLI 2.2.1 (https://github.com/allure-framework/allure2/releases/tag/2.2.1)
|
31
31
|
* Firefox and geckodriver
|
32
32
|
|
33
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
33
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
34
34
|
|
35
35
|
To run all tests: `bin/test`
|
36
36
|
|
37
|
-
To release a new version run `
|
37
|
+
To release a new version run `bump patch`, which will create a git tag and commit for the version. Push the new commit and tag with `git push`.
|
38
|
+
|
39
|
+
To generate a new gem, now run `gem build quintocumber.gemspec`.
|
38
40
|
|
39
41
|
Push the `.gem` file to [rubygems.org](https://rubygems.org) using `gem push quintocumber-<NEW_VERSION_TAG>.gem`
|
40
42
|
|
@@ -8,8 +8,8 @@ tests_failed = []
|
|
8
8
|
def pagerduty_payload(failed_length, reports_list_str)
|
9
9
|
{
|
10
10
|
payload: {
|
11
|
-
summary: failed_length.to_s +
|
12
|
-
source:
|
11
|
+
summary: failed_length.to_s + " #{PROJECT_NAME} test(s) failed",
|
12
|
+
source: "#{PROJECT_NAME}",
|
13
13
|
severity: 'critical',
|
14
14
|
custom_details: "Failed test(s):\n- #{reports_list_str}"
|
15
15
|
},
|
@@ -26,7 +26,7 @@ end
|
|
26
26
|
|
27
27
|
def generate_report_and_upload_to_s3
|
28
28
|
bucket = ENV['REPORT_BUCKET']
|
29
|
-
bucket_region = ENV['REPORT_BUCKET_REGION']
|
29
|
+
bucket_region = ENV['REPORT_BUCKET_REGION'] || 'us-east-1'
|
30
30
|
return unless bucket && system('allure --help >> /dev/null')
|
31
31
|
puts 'Generating allure report and uploading to s3'
|
32
32
|
system('allure generate --clean reports')
|
@@ -51,15 +51,16 @@ end
|
|
51
51
|
def upload_to_s3(s3, bucket, file)
|
52
52
|
file_name = file.clone
|
53
53
|
file_name.sub! File.join(Dir.pwd, 'allure-report/'), ''
|
54
|
-
obj = s3.bucket(bucket).object(
|
54
|
+
obj = s3.bucket(bucket).object("#{BUILD}/#{file_name}")
|
55
55
|
obj.upload_file(file)
|
56
56
|
obj.acl.put(acl: 'public-read')
|
57
|
+
puts "Sending #{BUILD}/#{file_name} to #{bucket}"
|
57
58
|
end
|
58
59
|
|
59
60
|
def insert_report_url_on_pagerduty_payload(report_url, payload)
|
60
61
|
payload[:links] = [{
|
61
62
|
href: report_url,
|
62
|
-
text:
|
63
|
+
text: "Report for #{BUILD}"
|
63
64
|
}]
|
64
65
|
puts 'Sending s3 report url to PagerDuty'
|
65
66
|
end
|
@@ -76,5 +77,6 @@ end
|
|
76
77
|
|
77
78
|
at_exit do
|
78
79
|
report_url = generate_report_and_upload_to_s3
|
80
|
+
puts "Report url: #{report_url}"
|
79
81
|
report_to_pagerduty(report_url, tests_failed)
|
80
82
|
end
|
data/lib/quintocumber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quintocumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Queiroz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|