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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99cb2c09c965ec3be2392db5ae215d654c9ac746
|
4
|
+
data.tar.gz: 5eab172cce51fbae25043a198b1b5962826f3021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb520ead7e5a867681286ec37cc25115c1b2b77ef4b043f210e349c467282604ec17f86c39e11cd4fc54ac68ded2387519c404b25bfc75e6c4c84fca1dfd8e79
|
7
|
+
data.tar.gz: 7bcc7f3f1abcc6c1881de219fddee599e93be93ac0fe8bddd46f727386e6e3dc0c1339c785c8d1ece355a9457bcc68363f4d201cdf1097b7c8de44ffcbdb72ba
|
@@ -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
|
data/spec/lib/matrix_spec.rb
CHANGED
@@ -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"=>{
|
50
|
-
|
51
|
-
|
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.
|
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
|