Sha256: 5d149fa9fd1a1672b1f06effb658b32feb0828bf168df86d633486224746c0b6

Contents?: true

Size: 699 Bytes

Versions: 16

Compression:

Stored size: 699 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
    rm_f "acceptance/acceptance-artifacts.tar.gz"
    sh "tar -czv --exclude acceptance/.bundle -f acceptance-artifacts.tar.gz acceptance lib/schema"
  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

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/facter/tasks/ci.rake
facter-3.12.1.cfacter.20181031 ext/facter/facter/tasks/ci.rake
facter-3.11.6.cfacter.20181031 ext/facter/facter/tasks/ci.rake
facter-3.12.1.cfacter.20181023 ext/facter/facter/tasks/ci.rake
facter-3.11.5.cfacter.20181022 ext/facter/facter/tasks/ci.rake
facter-3.12.0.cfacter.20181004 ext/facter/facter/tasks/ci.rake
facter-3.12.0.cfacter.20181001 ext/facter/facter/tasks/ci.rake
facter-3.12.0.cfacter.20180918 ext/facter/facter/tasks/ci.rake
facter-3.11.4.cfacter.20180821 ext/facter/facter/tasks/ci.rake
facter-3.11.3.cfacter.20180716 ext/facter/facter/tasks/ci.rake
facter-3.11.2.cfacter.20180612 ext/facter/facter/tasks/ci.rake
facter-3.9.6.cfacter.20180612 ext/facter/facter/tasks/ci.rake
facter-3.11.2.cfacter.20180606 ext/facter/facter/tasks/ci.rake
facter-3.9.6.cfacter.20180606 ext/facter/facter/tasks/ci.rake
facter-3.11.0.cfacter.20180319 ext/facter/facter/tasks/ci.rake
cfacter-3.11.0.rc.20180314 ext/facter/facter/tasks/ci.rake