xcjobs 0.7.0 → 0.8.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 +4 -4
- data/lib/xcjobs/version.rb +1 -1
- data/lib/xcjobs/xcodebuild.rb +8 -0
- data/spec/xcodebuild_spec.rb +2 -2
- 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: 245e4612964b80fa4694e5cfc6094205453604dc
|
|
4
|
+
data.tar.gz: 0efe7ca0a68adf1f8e66a576244bcadce358d78a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 483064a428f388c21b659523bb9afa2f7f007faa2d5f0afb2c91da6d4a4990d8c8979c0a2f35418f9e3a584024a6837553ffc6ff3108fbb00ab220eb4f235629
|
|
7
|
+
data.tar.gz: 546c879966a9b52ea02bc8c4659ced0c19f4f758913c0bbcaa24d13486e1acd437f1f6a2abf1f9d477ac6880417c450cc6d25cc46f7880aeef833bdfadccafbc
|
data/lib/xcjobs/version.rb
CHANGED
data/lib/xcjobs/xcodebuild.rb
CHANGED
|
@@ -36,6 +36,7 @@ module XCJobs
|
|
|
36
36
|
@destinations = []
|
|
37
37
|
@only_testings = []
|
|
38
38
|
@skip_testings = []
|
|
39
|
+
@build_options = {}
|
|
39
40
|
@build_settings = {}
|
|
40
41
|
@unsetenv_others = false
|
|
41
42
|
end
|
|
@@ -81,6 +82,10 @@ module XCJobs
|
|
|
81
82
|
@skip_testings << skip_testing
|
|
82
83
|
end
|
|
83
84
|
|
|
85
|
+
def add_build_option(option, value)
|
|
86
|
+
@build_options[option] = value
|
|
87
|
+
end
|
|
88
|
+
|
|
84
89
|
def add_build_setting(setting, value)
|
|
85
90
|
@build_settings[setting] = value
|
|
86
91
|
end
|
|
@@ -154,6 +159,9 @@ module XCJobs
|
|
|
154
159
|
opts.concat(["-skip-testing:#{skip_testing}"])
|
|
155
160
|
end
|
|
156
161
|
|
|
162
|
+
@build_options.each do |option, value|
|
|
163
|
+
opts.concat([option, value])
|
|
164
|
+
end
|
|
157
165
|
@build_settings.each do |setting, value|
|
|
158
166
|
opts << "#{setting}=#{value}"
|
|
159
167
|
end
|
data/spec/xcodebuild_spec.rb
CHANGED
|
@@ -104,7 +104,7 @@ describe XCJobs::Xcodebuild do
|
|
|
104
104
|
|
|
105
105
|
it 'executes the appropriate commands' do
|
|
106
106
|
subject.invoke
|
|
107
|
-
expect(@commands).to eq ['xcodebuild test -project Example.xcodeproj -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1
|
|
107
|
+
expect(@commands).to eq ['xcodebuild test -project Example.xcodeproj -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1 GCC_SYMBOLS_PRIVATE_EXTERN=NO']
|
|
108
108
|
end
|
|
109
109
|
end
|
|
110
110
|
end
|
|
@@ -144,7 +144,7 @@ describe XCJobs::Xcodebuild do
|
|
|
144
144
|
|
|
145
145
|
it 'executes the appropriate commands' do
|
|
146
146
|
subject.invoke
|
|
147
|
-
expect(@commands).to eq ['xcodebuild test -workspace Example.xcworkspace -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1
|
|
147
|
+
expect(@commands).to eq ['xcodebuild test -workspace Example.xcworkspace -scheme Example -sdk iphonesimulator -configuration Debug -destination name=iPhone 6,OS=8.1 -destination name=iPhone 6 Plus,OS=8.1 -destination name=iPad 2,OS=7.1 -destination name=iPad Air,OS=8.1 GCC_SYMBOLS_PRIVATE_EXTERN=NO']
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
150
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xcjobs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kishikawa katsumi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|