milou 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4be82578a6455e2a956a342787142d11877e559ebe7470131b0d3dc5f8817c7e
4
- data.tar.gz: 16e13904db4cfdd71cf56f902d8b5ce54b9fabe45e55590d8e0a4fc901295419
3
+ metadata.gz: fd58d78aec417f8b60745f327491e091f7e465a673ae0012d300df622eafb26c
4
+ data.tar.gz: 9d06d85c9303785c4feae17afcf78158e5658e763c66caa1e2c45a0c52396931
5
5
  SHA512:
6
- metadata.gz: 4300c4c297c0066c6702a011b66f8e5ed6af9993605f08d3f7fc9e4c69e66e2a4db996a68b98b41a8e3a8a9708f3f2f8de9d00527cb6b650080b99c4ec31ff18
7
- data.tar.gz: 5b424fd13b097eefc374555f015c35471b1741c5425332654214b69ad1eab5665f862afc3916b737b2ca76e0da928e6df19a3838f17e0f4d69b9b4d521e34ce4
6
+ metadata.gz: 746d9f6c1c20e948a469bd053231a44f300a2311cda364676e3c038c4b76e323e994954bda5734d214bf7a3d47dd407641e63f048ea5906a14e48cf1ef97d1db
7
+ data.tar.gz: 771bed1431bc754977efa59325cf19243b4ad979dba308a5ee2d887b0358914e14588af60bd55859ed5f8f87e9d344620dc1b5d3f45a8024ea1ab309b0818088
data/bin/watchdog CHANGED
@@ -16,3 +16,8 @@ when 'version'
16
16
  else
17
17
  puts 'need to specify which runner'
18
18
  end
19
+
20
+ case ARGV[1]
21
+ when 'bootstrap'
22
+ puts Watchdog::bootstrap_cleanup
23
+ end
@@ -20,5 +20,9 @@ module Watchdog
20
20
  def self.setup_project(setup_cmd)
21
21
  Watchdog::Utils.run_cmd setup_cmd
22
22
  end
23
+
24
+ def self.cleanup
25
+ %x[ rm -rf project_dir ]
26
+ end
23
27
  end
24
28
  end
@@ -16,14 +16,14 @@ module Watchdog
16
16
  end
17
17
 
18
18
  def build_detox
19
- detox_cmd = 'yarn run detox-build'
19
+ detox_cmd = 'yarn run detox-build-watchdog'
20
20
 
21
21
  Watchdog::Utils.run_cmd(detox_cmd)
22
22
  end
23
23
 
24
24
  # Detox runner
25
25
  def run_detox
26
- detox_cmd = 'yarn run detox-test'
26
+ detox_cmd = 'yarn run detox-test-watchdog'
27
27
 
28
28
  Watchdog::Utils.run_cmd(detox_cmd)
29
29
  end
@@ -62,6 +62,12 @@ module Watchdog
62
62
  end
63
63
  end
64
64
 
65
+ if test_results.empty?
66
+ puts 'Watchdog - No parsed results, an issue might have happened'
67
+ puts "Watchdog - Raw detox output: #{detox_out}"
68
+ puts "Watchdog - Raw detox error output: #{detox_err}"
69
+ end
70
+
65
71
  headers = {
66
72
  'Content-Type' => 'application/json',
67
73
  'X-API-KEY' => ENV['WATCHDOG_AUTH_TOKEN']
@@ -73,7 +79,7 @@ module Watchdog
73
79
  :headers => headers
74
80
  )
75
81
 
76
- puts "Watchdog response: #{response}"
82
+ puts "Watchdog - Response: #{response}"
77
83
  end
78
84
  end
79
85
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Watchdog
4
- VERSION = "1.0.1".freeze
4
+ VERSION = "1.0.3".freeze
5
5
  end
data/lib/watchdog.rb CHANGED
@@ -23,6 +23,10 @@ module Watchdog
23
23
  end
24
24
  end
25
25
 
26
+ def self.bootstrap_cleanup
27
+ Watchdog::Bootstrap.cleanup
28
+ end
29
+
26
30
  def self.run_detox
27
31
  runner = Watchdog::Detox.new
28
32
  runner.run
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milou
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv