Sha256: 5bb600673737ec7fb6e30f89983bdd68a5f83aa047e078cf318c5b5db9a5746f

Contents?: true

Size: 416 Bytes

Versions: 50

Compression:

Stored size: 416 Bytes

Contents

module Vx
  module Builder
    class ScriptBuilder

      class Parallel < Base

        def call(env)
          if env.source.parallel?
            env.init << trace_sh_command("export CI_PARALLEL_JOBS=#{env.source.parallel}")
            env.init << trace_sh_command("export CI_PARALLEL_JOB_NUMBER=#{env.source.parallel_job_number}")
          end

          app.call(env)
        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
vx-builder-0.5.19 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.18 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.17 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.16 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.15 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.14 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.13 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.12 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.11 lib/vx/builder/script_builder/parallel.rb
vx-builder-0.5.10 lib/vx/builder/script_builder/parallel.rb