vx-build_configuration 0.2.0.pre35 → 0.2.0.pre36

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
  SHA1:
3
- metadata.gz: c648591a5617c5cc0705bdacb303a41b7ddce8c8
4
- data.tar.gz: d99fb21c3ee1ac1ae65f64a9aa0cf2f8b589d27d
3
+ metadata.gz: 99cb2c09c965ec3be2392db5ae215d654c9ac746
4
+ data.tar.gz: 5eab172cce51fbae25043a198b1b5962826f3021
5
5
  SHA512:
6
- metadata.gz: e1f7b40d5422dba2cce890174fd632b4a363b7a5d9911da70d59d1c835e3b4991bc97fa444b035411284aa3ec00b2fe3fc51497c006ce4a359806c6a028a01f1
7
- data.tar.gz: 6f0753c90bd2cfa0b5ee0b5c10d9ce25a56a46ba8fa9d9a1aaabcde51beb30ccb6adef89b25fa43dcd52dbd6d1fe7ac7b9dd949c8d62e89acc2a8ca9e6767a58
6
+ metadata.gz: eb520ead7e5a867681286ec37cc25115c1b2b77ef4b043f210e349c467282604ec17f86c39e11cd4fc54ac68ded2387519c404b25bfc75e6c4c84fca1dfd8e79
7
+ data.tar.gz: 7bcc7f3f1abcc6c1881de219fddee599e93be93ac0fe8bddd46f727386e6e3dc0c1339c785c8d1ece355a9457bcc68363f4d201cdf1097b7c8de44ffcbdb72ba
@@ -3,7 +3,7 @@ module Vx
3
3
  class Matrix
4
4
 
5
5
  KEYS = (BuildConfiguration::LANGS + %w{ matrix_env:env }).freeze
6
- NOT_MATRIX_KEYS = %w{ script before_script }
6
+ NOT_MATRIX_KEYS = %w{ script before_script services }
7
7
 
8
8
  attr_reader :source
9
9
 
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  class BuildConfiguration
3
- VERSION = "0.2.0.pre35"
3
+ VERSION = "0.2.0.pre36"
4
4
  end
5
5
  end
@@ -1,4 +1,3 @@
1
- language: ruby
2
1
  rvm:
3
2
  - "2.0.0"
4
3
 
@@ -0,0 +1,18 @@
1
+ # bug: ignore services
2
+ rvm:
3
+ - "2.0.0"
4
+
5
+ services:
6
+ - elasticsearch
7
+
8
+ env:
9
+ - DB=postgresql
10
+
11
+ before_script:
12
+ - cp config/samples/secret_token.rb config/initializers/secret_token.rb
13
+ - cp config/database.travis.yml config/database.yml
14
+ - bundle exec rake db:setup
15
+ - bundle exec rake db:test:prepare
16
+
17
+ script:
18
+ - bundle exec rspec
@@ -46,9 +46,13 @@ describe Vx::BuildConfiguration::Matrix do
46
46
 
47
47
  it { should have(1).item }
48
48
  its("first.attributes") { should eq(
49
- "env"=>{"matrix"=>[], "global"=>[]},
50
- "script"=>["/bin/true"],
51
- "before_script"=>[]
49
+ "env" => {
50
+ "matrix" => [],
51
+ "global" => []
52
+ },
53
+ "script" =>["/bin/true"],
54
+ "before_script" =>[],
55
+ "services" => []
52
56
  )}
53
57
  end
54
58
 
@@ -64,6 +68,16 @@ describe Vx::BuildConfiguration::Matrix do
64
68
  end
65
69
  end
66
70
 
71
+ context "with services key" do
72
+ let(:config) { Vx::BuildConfiguration.from_file fixture_path("travis_bug_2.yml") }
73
+ it { should have(1).item }
74
+
75
+ it "should have services" do
76
+ expect(matrix.configurations.first.services).to eq %w{ elasticsearch }
77
+ end
78
+
79
+ end
80
+
67
81
  context "values" do
68
82
 
69
83
  it { should have(12).items }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-build_configuration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre35
4
+ version: 0.2.0.pre36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
@@ -85,6 +85,7 @@ files:
85
85
  - lib/vx/build_configuration/version.rb
86
86
  - spec/fixtures/travis.yml
87
87
  - spec/fixtures/travis_bug_1.yml
88
+ - spec/fixtures/travis_bug_2.yml
88
89
  - spec/lib/build_configuration_spec.rb
89
90
  - spec/lib/matrix_spec.rb
90
91
  - spec/spec_helper.rb
@@ -117,6 +118,7 @@ summary: summary
117
118
  test_files:
118
119
  - spec/fixtures/travis.yml
119
120
  - spec/fixtures/travis_bug_1.yml
121
+ - spec/fixtures/travis_bug_2.yml
120
122
  - spec/lib/build_configuration_spec.rb
121
123
  - spec/lib/matrix_spec.rb
122
124
  - spec/spec_helper.rb