Sha256: adcd7006563d838a1fe09fe6e773bf4324bbf235cb13ba4df5e4382fe4bddcff
Contents?: true
Size: 817 Bytes
Versions: 5
Compression:
Stored size: 817 Bytes
Contents
require 'yaml' require 'time' namespace "ci" do task :spec do ENV["LOG_SPEC_ORDER"] = "true" sh %{rspec -r yarjuf -f JUnit -o result.xml -fd spec} end 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
puppet-3.4.2 | tasks/ci.rake |
puppet-3.4.1 | tasks/ci.rake |
puppet-3.4.0 | tasks/ci.rake |
puppet-3.4.0.rc2 | tasks/ci.rake |
puppet-3.4.0.rc1 | tasks/ci.rake |