File tree Expand file tree Collapse file tree 5 files changed +35
-26
lines changed Expand file tree Collapse file tree 5 files changed +35
-26
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ before_install:
13
13
- brew bundle
14
14
install :
15
15
- bundle install --without development --deployment --jobs=3 --retry=3
16
- - bundle exec pod repo update
17
- - bundle exec pod install
16
+ - sh ./scripts/pod-install-if-needed.sh
18
17
before_script :
19
18
- bundle exec danger
20
19
script :
Original file line number Diff line number Diff line change 2
2
3
3
# Sometimes it's a README fix, or something like that - which isn't relevant for
4
4
# including in a project's CHANGELOG for example
5
- declared_trivial = pr_title . include? "#trivial"
5
+ declared_trivial = ( github . pr_title + github . pr_body ) . include? ( "#trivial" )
6
6
7
7
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
8
8
warn ( "PR is classed as Work in Progress" ) if pr_title . include? "[WIP]"
9
9
10
10
# Warn when there is a big PR
11
11
warn ( "Big PR" ) if lines_of_code > 500
12
12
13
- # Don't let testing shortcuts get into master by accident
14
- fail ( "fdescribe left in tests" ) if `grep -r fdescribe specs/` . length > 1
15
- fail ( "fit left in tests" ) if `grep -r "fit specs/ ` . length > 1
13
+ # Ensure there is a summary for a PR
14
+ fail "Please provide a summary in the Pull Request description" if github . pr_body . length < 5
16
15
17
16
# Add a CHANGELOG entry for app changes
18
17
if git . lines_of_code > 50 && !github . modified_files . include? ( "CHANGELOG.md" ) && !declared_trivial
19
18
fail ( "Please update [CHANGELOG.md](https://github.com/polydice/iCook-tvOS/blob/develop/CHANGELOG.md)." )
20
19
end
21
20
22
21
# Ensure a clean commits history
23
- if git . commits . any? { |c | c . message =~ /^Merge branch ' #{ github . branch_for_base } ' / }
22
+ if git . commits . any? { |c | c . message =~ /^Merge branch/ }
24
23
fail ( 'Please rebase to get rid of the merge commits in this PR' )
25
24
end
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ ruby "2.3.1"
3
3
4
4
gem "cocoapods" , "~> 1.1.0"
5
5
gem "cocoapods-keys"
6
- gem "danger" , "~> 0.10 .0"
6
+ gem "danger" , "~> 4.0 .0"
7
7
gem "scan"
8
8
gem "slather"
Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: http://rubygems.org/
3
3
specs:
4
+ CFPropertyList (2.3.3 )
4
5
RubyInline (3.12.4 )
5
6
ZenTest (~> 4.3 )
6
7
ZenTest (4.11.1 )
13
14
addressable (2.4.0 )
14
15
babosa (1.0.2 )
15
16
claide (1.0.1 )
16
- claide-plugins (0.9.1 )
17
+ claide-plugins (0.9.2 )
17
18
cork
18
19
nap
19
20
open4 (~> 1.3 )
63
64
commander (>= 4.3.5 )
64
65
highline (>= 1.7.1 )
65
66
security
66
- danger (0.10.1 )
67
+ danger (4.0.0 )
67
68
claide (~> 1.0 )
68
- claide-plugins (~> 0.9 )
69
+ claide-plugins (>= 0.9.2 )
69
70
colored (~> 1.2 )
70
71
cork (~> 0.1 )
71
- faraday (~> 0 )
72
+ faraday (~> 0.9 )
72
73
faraday-http-cache (~> 1.0 )
73
74
git (~> 1 )
75
+ kramdown (~> 1.5 )
74
76
octokit (~> 4.2 )
75
- redcarpet (~> 3.3 )
76
77
terminal-table (~> 1 )
77
78
dotenv (2.1.1 )
78
79
escape (0.0.4 )
@@ -101,34 +102,33 @@ GEM
101
102
highline (1.7.8 )
102
103
i18n (0.7.0 )
103
104
json (1.8.3 )
105
+ kramdown (1.12.0 )
104
106
mini_portile2 (2.1.0 )
105
107
minitest (5.9.1 )
106
108
molinillo (0.5.2 )
107
109
multi_json (1.12.1 )
108
110
multipart-post (2.0.0 )
111
+ nanaimo (0.2.2 )
109
112
nap (1.1.0 )
110
113
netrc (0.7.8 )
111
- nokogiri (1.6.8 )
114
+ nokogiri (1.6.8.1 )
112
115
mini_portile2 (~> 2.1.0 )
113
- pkg-config (~> 1.1.7 )
114
- octokit (4.3.0 )
116
+ octokit (4.4.1 )
115
117
sawyer (~> 0.7.0 , >= 0.5.3 )
116
118
open4 (1.3.4 )
117
119
osx_keychain (1.0.1 )
118
120
RubyInline (~> 3 )
119
- pkg-config (1.1.7 )
120
121
plist (3.2.0 )
121
- redcarpet (3.3.4 )
122
122
rouge (1.11.1 )
123
123
rubyzip (1.1.7 )
124
124
sawyer (0.7.0 )
125
125
addressable (>= 2.3.5 , < 2.5 )
126
126
faraday (~> 0.8 , < 0.10 )
127
- scan (0.13 .1 )
128
- fastlane_core (>= 0.52.1 , < 1.0.0 )
127
+ scan (0.14 .1 )
128
+ fastlane_core (>= 0.53.0 , < 1.0.0 )
129
129
slack-notifier (~> 1.3 )
130
- terminal-table
131
- xcpretty (>= 0.2.2 )
130
+ terminal-table ( >= 1.4.5 , < 2.0.0 )
131
+ xcpretty (>= 0.2.4 , < 1.0.0 )
132
132
xcpretty-travis-formatter (>= 0.0.3 )
133
133
security (0.1.3 )
134
134
slack-notifier (1.5.1 )
@@ -143,10 +143,12 @@ GEM
143
143
tzinfo (1.2.2 )
144
144
thread_safe (~> 0.1 )
145
145
unicode-display_width (1.1.1 )
146
- xcodeproj (1.3.3 )
146
+ xcodeproj (1.4.1 )
147
+ CFPropertyList (~> 2.3.3 )
147
148
activesupport (>= 3 )
148
149
claide (>= 1.0.1 , < 2.0 )
149
150
colored (~> 1.2 )
151
+ nanaimo (~> 0.2.0 )
150
152
xcpretty (0.2.4 )
151
153
rouge (~> 1.8 )
152
154
xcpretty-travis-formatter (0.0.4 )
@@ -158,12 +160,12 @@ PLATFORMS
158
160
DEPENDENCIES
159
161
cocoapods (~> 1.1.0 )
160
162
cocoapods-keys
161
- danger (~> 0.10 .0 )
163
+ danger (~> 4.0 .0 )
162
164
scan
163
165
slather
164
166
165
167
RUBY VERSION
166
- ruby 2.3.0p0
168
+ ruby 2.3.1p112
167
169
168
170
BUNDLED WITH
169
- 1.12.5
171
+ 1.13.6
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ if cmp -s Podfile.lock Pods/Podfile.lock; then
4
+ echo " Using cached CocoaPods dependencies"
5
+ else
6
+ bundle exec pod repo update
7
+ bundle exec pod install
8
+ cp -v Podfile.lock Pods
9
+ fi
You can’t perform that action at this time.
0 commit comments