Skip to content

Commit 90889d2

Browse files
committed
Move release_version & tests to rake tasks
1 parent ee88e50 commit 90889d2

File tree

3 files changed

+129
-24
lines changed

3 files changed

+129
-24
lines changed

Gemfile.lock

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
PATH
2+
remote: .
3+
specs:
4+
cocoapods-binary (0.4.4)
5+
cocoapods (>= 1.5.0, < 2.0)
6+
fourflusher (~> 2.0)
7+
xcpretty (~> 0.3.0)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
CFPropertyList (3.0.0)
13+
activesupport (4.2.11.1)
14+
i18n (~> 0.7)
15+
minitest (~> 5.1)
16+
thread_safe (~> 0.3, >= 0.3.4)
17+
tzinfo (~> 1.1)
18+
atomos (0.1.3)
19+
bacon (1.2.0)
20+
claide (1.0.2)
21+
cocoapods (1.6.1)
22+
activesupport (>= 4.0.2, < 5)
23+
claide (>= 1.0.2, < 2.0)
24+
cocoapods-core (= 1.6.1)
25+
cocoapods-deintegrate (>= 1.0.2, < 2.0)
26+
cocoapods-downloader (>= 1.2.2, < 2.0)
27+
cocoapods-plugins (>= 1.0.0, < 2.0)
28+
cocoapods-search (>= 1.0.0, < 2.0)
29+
cocoapods-stats (>= 1.0.0, < 2.0)
30+
cocoapods-trunk (>= 1.3.1, < 2.0)
31+
cocoapods-try (>= 1.1.0, < 2.0)
32+
colored2 (~> 3.1)
33+
escape (~> 0.0.4)
34+
fourflusher (>= 2.2.0, < 3.0)
35+
gh_inspector (~> 1.0)
36+
molinillo (~> 0.6.6)
37+
nap (~> 1.0)
38+
ruby-macho (~> 1.4)
39+
xcodeproj (>= 1.8.1, < 2.0)
40+
cocoapods-core (1.6.1)
41+
activesupport (>= 4.0.2, < 6)
42+
fuzzy_match (~> 2.0.4)
43+
nap (~> 1.0)
44+
cocoapods-deintegrate (1.0.4)
45+
cocoapods-downloader (1.2.2)
46+
cocoapods-plugins (1.0.0)
47+
nap
48+
cocoapods-search (1.0.0)
49+
cocoapods-stats (1.1.0)
50+
cocoapods-trunk (1.3.1)
51+
nap (>= 0.8, < 2.0)
52+
netrc (~> 0.11)
53+
cocoapods-try (1.1.0)
54+
colored2 (3.1.2)
55+
concurrent-ruby (1.1.5)
56+
escape (0.0.4)
57+
fourflusher (2.2.0)
58+
fuzzy_match (2.0.4)
59+
gh_inspector (1.1.3)
60+
i18n (0.9.5)
61+
concurrent-ruby (~> 1.0)
62+
metaclass (0.0.4)
63+
minitest (5.11.3)
64+
mocha (1.8.0)
65+
metaclass (~> 0.0.1)
66+
mocha-on-bacon (0.2.3)
67+
mocha (>= 0.13.0)
68+
molinillo (0.6.6)
69+
nanaimo (0.2.6)
70+
nap (1.1.0)
71+
netrc (0.11.0)
72+
prettybacon (0.0.2)
73+
bacon (~> 1.2)
74+
rake (12.3.2)
75+
rouge (2.0.7)
76+
ruby-macho (1.4.0)
77+
thread_safe (0.3.6)
78+
tzinfo (1.2.5)
79+
thread_safe (~> 0.1)
80+
xcodeproj (1.8.2)
81+
CFPropertyList (>= 2.3.3, < 4.0)
82+
atomos (~> 0.1.3)
83+
claide (>= 1.0.2, < 2.0)
84+
colored2 (~> 3.1)
85+
nanaimo (~> 0.2.6)
86+
xcpretty (0.3.0)
87+
rouge (~> 2.0.7)
88+
89+
PLATFORMS
90+
ruby
91+
92+
DEPENDENCIES
93+
bacon
94+
bundler (~> 1.3)
95+
cocoapods
96+
cocoapods-binary!
97+
mocha
98+
mocha-on-bacon
99+
prettybacon
100+
rake
101+
102+
BUNDLED WITH
103+
1.17.3

Rakefile

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
11
require 'bundler/gem_tasks'
22

3-
def specs(dir)
4-
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
5-
end
6-
7-
desc 'Runs all the specs'
3+
desc 'Runs all the tests'
84
task :specs do
9-
sh "bundle exec bacon #{specs('**')}"
5+
Dir.chdir('test') do
6+
system 'sh test.sh'
7+
end
108
end
119

12-
task :default => :specs
10+
# rake bump_version 1.0.1
11+
desc 'bump version number'
12+
task :bump_version do
13+
version = ARGV[1]
14+
15+
unless version
16+
puts 'please input a version'
17+
exit(1)
18+
end
19+
20+
content = <<-DOC
21+
module CocoapodsBinary
22+
VERSION = "#{version}"
23+
end
24+
DOC
25+
File.write('lib/cocoapods-binary/gem_version.rb', content)
26+
`git add -A; git commit -m "bump version"; git push`
27+
`rake install`
28+
`gem push pkg/cocoapods-binary-#{version}.gem`
29+
exit
30+
end
1331

32+
task default: :specs

test/release_version.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)