manageiq-cross_repo 1.0.3 → 1.0.4

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: 947e30e62954cf7e034518a18451dc723fb2ede2718cb797b4b77703cae83346
4
- data.tar.gz: 682ba36159c525b587214312dee13914c47a05207d1701f18f046b740a987e77
3
+ metadata.gz: a92b33e5752bf49917ffffbc780d309d198c10f52176d210c7fbf3415ba96bfc
4
+ data.tar.gz: 3a40038eb6a34fc60c8f6865951f8970121031505d6e1063acd2cc5f3a2dc7f0
5
5
  SHA512:
6
- metadata.gz: ce452c983e10ebe4685ae54170b6134f2e3088f2d8118fef445cfed1f2409440495e9701d3f8ed7efb25b880613c514b1d3347aa8ac4208be1ad3f51c91a124c
7
- data.tar.gz: 0f8633fee2c1f81560889b0392aa5cb629bd3fb63a5fcb7c294ff91794be9a005f157816509a4421728c057ad43967f7b2746c9bab83d645cbe0fdba9662a96a
6
+ metadata.gz: 14c902452a16f84aaded53ac84934f7165212f574a085ebd9ae92e30c5504ae74a8636013098d75ace760b4b14d5bd2f07891f8c63612df62cbae98e6607889d
7
+ data.tar.gz: 3abde6ca7b2665648cb11f91d64a4cb953d22d6dc7cd39cc443f6cec2915e4f58a3b4e203cfefeae1cf1d5413fdbc0e5652902a013aa12053212872a805f5ab8
@@ -24,30 +24,23 @@ module ManageIQ::CrossRepo
24
24
 
25
25
  def run
26
26
  test_repo.ensure_clone
27
- test_repo.core? ? run_core : run_plugin
27
+ core_repo.ensure_clone unless test_repo.core?
28
+ prepare_gem_repos
29
+ run_tests
28
30
  end
29
31
 
30
32
  private
31
33
 
32
- def run_core
33
- prepare_gem_repos
34
-
34
+ def run_tests
35
35
  with_test_env do
36
- system!({"TRAVIS_BUILD_DIR" => test_repo.path.to_s}, "bash", "tools/ci/before_install.sh") if ENV["CI"]
37
- system!("bin/setup")
36
+ system!({"TRAVIS_BUILD_DIR" => test_repo.path.to_s}, "bash", "tools/ci/before_install.sh") if ENV["CI"] && File.exist?("tools/ci/before_install.sh")
37
+ system!(env_vars, "bin/setup")
38
38
  system!("bundle exec rake")
39
39
  end
40
40
  end
41
41
 
42
- def run_plugin
43
- core_repo.ensure_clone
44
- prepare_gem_repos
45
-
46
- env_vars = {"MANAGEIQ_REPO" => core_repo.path.to_s}
47
- with_test_env do
48
- system!(env_vars, "bin/setup")
49
- system!("bundle exec rake")
50
- end
42
+ def env_vars
43
+ {"MANAGEIQ_REPO" => core_repo.path.to_s}
51
44
  end
52
45
 
53
46
  def with_test_env
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module CrossRepo
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-cross_repo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Authors
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake