xamarin-test-cloud 0.9.22 → 0.9.23
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/xamarin-test-cloud/cli.rb +35 -7
- data/lib/xamarin-test-cloud/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: a2d847ea19fc7b8402e99ee9698bf155a0dec15a
|
|
4
|
+
data.tar.gz: 6bc08e38845d94ce81f47c2966d7e18bb403762e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d49b0095708759e6b36ed4dc5daee1797e0be0c68a3f69e7a344ba074c764c727f0f9a58cbc9ad8493f80a4fe2ab78c934f2b011d0a11e76f3f4543118a3d02f
|
|
7
|
+
data.tar.gz: 8fed008f85eb31f33e1cedcccef81d34f6afef135dd77b7a2552606cf46546b8b4e4eaf865391fa9b0384f536e63d032ecd400259d8214f2ee9c1342cd8502a5
|
|
@@ -301,7 +301,13 @@ module XamarinTestCloud
|
|
|
301
301
|
device_selection
|
|
302
302
|
end
|
|
303
303
|
|
|
304
|
+
def workspace_gemfile
|
|
305
|
+
File.join(self.workspace, 'Gemfile')
|
|
306
|
+
end
|
|
304
307
|
|
|
308
|
+
def workspace_gemfile_lock
|
|
309
|
+
File.join(self.workspace, 'Gemfile.lock')
|
|
310
|
+
end
|
|
305
311
|
|
|
306
312
|
def submit_test_job(device_selection_data)
|
|
307
313
|
tmpdir = Dir.mktmpdir
|
|
@@ -314,9 +320,10 @@ module XamarinTestCloud
|
|
|
314
320
|
server = verify_app_and_extract_test_server
|
|
315
321
|
|
|
316
322
|
log_header('Checking for Gemfile')
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
FileUtils.cp
|
|
323
|
+
|
|
324
|
+
if File.exist?(workspace_gemfile)
|
|
325
|
+
FileUtils.cp workspace_gemfile, tmpdir
|
|
326
|
+
FileUtils.cp workspace_gemfile_lock, tmpdir if File.exist?(workspace_gemfile_lock)
|
|
320
327
|
else
|
|
321
328
|
copy_default_gemfile(File.join(tmpdir, "Gemfile"), server)
|
|
322
329
|
end
|
|
@@ -525,13 +532,34 @@ module XamarinTestCloud
|
|
|
525
532
|
end
|
|
526
533
|
|
|
527
534
|
def calabash_android_version
|
|
528
|
-
|
|
529
|
-
|
|
535
|
+
version = nil
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
if File.exist?(workspace_gemfile)
|
|
539
|
+
FileUtils.cd(self.workspace) do
|
|
540
|
+
version = `bundle exec ruby -e "require 'calabash-android/version'; puts Calabash::Android::VERSION"`
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
unless version
|
|
544
|
+
require 'calabash-android'
|
|
545
|
+
version = Calabash::Android::VERSION
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
version = version.strip
|
|
530
549
|
end
|
|
531
550
|
|
|
532
551
|
def calabash_ios_version
|
|
533
|
-
|
|
534
|
-
|
|
552
|
+
version = nil
|
|
553
|
+
if File.exist?(workspace_gemfile)
|
|
554
|
+
FileUtils.cd(self.workspace) do
|
|
555
|
+
version = `bundle exec ruby -e "require 'calabash-cucumber/version'; puts Calabash::Cucumber::VERSION"`
|
|
556
|
+
end
|
|
557
|
+
end
|
|
558
|
+
unless version
|
|
559
|
+
require 'calabash-cucumber'
|
|
560
|
+
version = Calabash::Cucumber::VERSION
|
|
561
|
+
end
|
|
562
|
+
version = version.strip
|
|
535
563
|
end
|
|
536
564
|
|
|
537
565
|
def test_server_path
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xamarin-test-cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karl Krukow
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-08-
|
|
12
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thor
|