Sha256: 4c4cbbe215dc9b224f1788578da030e17b1eec0f8095b357d13fd60e2dbb51d6

Contents?: true

Size: 701 Bytes

Versions: 388

Compression:

Stored size: 701 Bytes

Contents

require 'yaml'
require 'time'

namespace "ci" do
  desc "Tar up the acceptance/ directory so that package test runs have tests to run against."
  task :acceptance_artifacts => :tag_creator do
    Dir.chdir("acceptance") do
      rm_f "acceptance-artifacts.tar.gz"
      sh "tar -czv --exclude .bundle -f acceptance-artifacts.tar.gz *"
    end
  end

  task :tag_creator do
    Dir.chdir("acceptance") do
      File.open('creator.txt', 'w') do |fh|
        YAML.dump({
          'creator_id' => ENV['CREATOR'] || ENV['BUILD_URL'] || 'unknown',
          'created_on' => Time.now.iso8601,
          'commit' => (`git log -1 --oneline` rescue "unknown: #{$!}")
        }, fh)
      end
    end
  end
end

Version data entries

388 entries across 388 versions & 1 rubygems

Version Path
puppet-7.24.0 tasks/ci.rake
puppet-7.24.0-x86-mingw32 tasks/ci.rake
puppet-7.24.0-x64-mingw32 tasks/ci.rake
puppet-7.24.0-universal-darwin tasks/ci.rake
puppet-7.23.0 tasks/ci.rake
puppet-7.23.0-x86-mingw32 tasks/ci.rake
puppet-7.23.0-x64-mingw32 tasks/ci.rake
puppet-7.23.0-universal-darwin tasks/ci.rake
puppet-7.22.0 tasks/ci.rake
puppet-7.22.0-x86-mingw32 tasks/ci.rake
puppet-7.22.0-x64-mingw32 tasks/ci.rake
puppet-7.22.0-universal-darwin tasks/ci.rake
puppet-6.29.0 tasks/ci.rake
puppet-6.29.0-x86-mingw32 tasks/ci.rake
puppet-6.29.0-x64-mingw32 tasks/ci.rake
puppet-6.29.0-universal-darwin tasks/ci.rake
puppet-7.21.0 tasks/ci.rake
puppet-7.21.0-x86-mingw32 tasks/ci.rake
puppet-7.21.0-x64-mingw32 tasks/ci.rake
puppet-7.21.0-universal-darwin tasks/ci.rake