danger-samsao 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis/danger.sh +7 -0
- data/.travis.yml +16 -7
- data/CHANGELOG.md +52 -0
- data/Dangerfile +5 -5
- data/Gemfile.lock +2 -2
- data/README.md +209 -56
- data/Rakefile +3 -1
- data/lib/samsao/actions.rb +130 -16
- data/lib/samsao/config.rb +13 -0
- data/lib/samsao/gem_version.rb +1 -1
- data/lib/samsao/helpers.rb +62 -13
- data/lib/samsao/plugin.rb +1 -0
- data/lib/samsao/regexp.rb +10 -6
- data/spec/matchers/have_message.rb +25 -0
- data/spec/matchers/have_no_message.rb +14 -0
- data/spec/samsao_acceptance_criteria_spec.rb +54 -0
- data/spec/samsao_branching_model_spec.rb +3 -3
- data/spec/samsao_changelog_updated_spec.rb +8 -8
- data/spec/samsao_config_spec.rb +28 -0
- data/spec/samsao_feature_jira_issue_number_spec.rb +72 -0
- data/spec/samsao_feature_single_commit_spec.rb +3 -3
- data/spec/samsao_fix_jira_issue_number_spec.rb +82 -0
- data/spec/samsao_jira_project_key_spec.rb +37 -0
- data/spec/samsao_label_pr_spec.rb +51 -0
- data/spec/samsao_merge_commit_detected_spec.rb +5 -17
- data/spec/samsao_report_spec.rb +45 -0
- data/spec/samsao_shorten_sha_spec.rb +26 -0
- data/spec/samsao_truncate_spec.rb +36 -0
- data/spec/samsao_work_in_progress_pr_spec.rb +4 -4
- data/spec/spec_helper.rb +15 -0
- metadata +24 -5
- data/bitrise.wrapper.yml +0 -51
- data/bitrise.yml +0 -80
data/bitrise.yml
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
---
|
2
|
-
format_version: 1.4.0
|
3
|
-
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
|
4
|
-
|
5
|
-
workflows:
|
6
|
-
# Main Workflows
|
7
|
-
|
8
|
-
develop:
|
9
|
-
before_run:
|
10
|
-
- _setup
|
11
|
-
|
12
|
-
after_run:
|
13
|
-
- _teardown
|
14
|
-
|
15
|
-
pr:
|
16
|
-
before_run:
|
17
|
-
- _setup
|
18
|
-
|
19
|
-
after_run:
|
20
|
-
- _teardown
|
21
|
-
|
22
|
-
# Composite Workflows
|
23
|
-
|
24
|
-
_setup:
|
25
|
-
before_run:
|
26
|
-
- _cache_pull
|
27
|
-
- _prepare
|
28
|
-
- _danger
|
29
|
-
- _lint
|
30
|
-
- _test
|
31
|
-
|
32
|
-
_teardown:
|
33
|
-
after_run:
|
34
|
-
- _cache_push
|
35
|
-
|
36
|
-
# Private workflows
|
37
|
-
|
38
|
-
_cache_push:
|
39
|
-
steps:
|
40
|
-
- cache-push@0.9.4:
|
41
|
-
title: Push cache
|
42
|
-
run_if: .IsCI
|
43
|
-
inputs:
|
44
|
-
- cache_paths: |-
|
45
|
-
$HOME/.bundle
|
46
|
-
|
47
|
-
_cache_pull:
|
48
|
-
steps:
|
49
|
-
- cache-pull@0.9.2:
|
50
|
-
title: Pull cache
|
51
|
-
|
52
|
-
_danger:
|
53
|
-
steps:
|
54
|
-
- script@1.1.3:
|
55
|
-
title: Danger
|
56
|
-
run_if: .IsPR
|
57
|
-
inputs:
|
58
|
-
- content: |-
|
59
|
-
bundle exec danger
|
60
|
-
|
61
|
-
_lint:
|
62
|
-
steps:
|
63
|
-
- script@1.1.3:
|
64
|
-
title: Linting
|
65
|
-
inputs:
|
66
|
-
- content: bundle exec rake lint
|
67
|
-
|
68
|
-
_prepare:
|
69
|
-
steps:
|
70
|
-
- script@1.1.3:
|
71
|
-
title: Prepare (installing dependencies)
|
72
|
-
inputs:
|
73
|
-
- content: bundle install
|
74
|
-
|
75
|
-
_test:
|
76
|
-
steps:
|
77
|
-
- script@1.1.3:
|
78
|
-
title: Tests
|
79
|
-
inputs:
|
80
|
-
- content: bundle exec rake tests
|