Sha256: d2b2b387d8834bf8e84bda128454699e3532e4a1cbc1ef9cef90409fc7e095c7
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
require 'spec_helper' describe "(integration) go" do let(:build_configuration) { Vx::Builder::BuildConfiguration.from_yaml(config) } let(:matrix) { Vx::Builder.matrix build_configuration } let(:task) { create :task } let(:script) { Vx::Builder.script(task, source) } subject { matrix } def write_script_to_filter(prefix) File.open(fixture_path("integration/go/#{prefix}before_script.sh"), 'w') do |io| io << script.to_before_script end File.open(fixture_path("integration/go/#{prefix}after_script.sh"), 'w') do |io| io << script.to_after_script end File.open(fixture_path("integration/go/#{prefix}script.sh"), 'w') do |io| io << script.to_script end end context "language" do let(:config) { fixture("integration/go/language/config.yml") } let(:source) { matrix.build.first } before { write_script_to_filter "language/" } it "should generate one configuration" do expect(matrix.build).to have(1).item end it "should generate valid scripts" do expect(script.to_before_script).to eq fixture("integration/go/language/before_script.sh") expect(script.to_script).to eq fixture("integration/go/language/script.sh") expect(script.to_after_script).to eq fixture("integration/go/language/after_script.sh") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vx-builder-0.4.0 | spec/integration/go_spec.rb |
vx-builder-0.3.13 | spec/integration/go_spec.rb |
vx-builder-0.3.12 | spec/integration/go_spec.rb |
vx-builder-0.3.11 | spec/integration/go_spec.rb |