Sha256: 5f0e61ee7986b67a2d663e2a3550cbe1e21994e1352d9c46bb96735221a76526
Contents?: true
Size: 892 Bytes
Versions: 5
Compression:
Stored size: 892 Bytes
Contents
namespace :ci do desc "Build the project" task :build do begin Rake::Task['ci:success'].invoke rescue Exception => e Rake::Task['ci:failure'].invoke raise e end end desc "The Build Succeeded, so tell our monitoring service" task :success do if File.exists?("/home/deployer/monitor/log") system 'echo "Soap5r succeeded, http://cc.cenx.localnet" > /home/deployer/monitor/log/Soap5r.cc' else print "BUILD SUCCEEDED, but log directory (/home/deployer/monitor/log) does not exist" end end desc "The Build failed, so tell our monitoring service" task :failure do if File.exists?("/home/deployer/monitor/log") system "curl http://cc.cenx.localnet/soap5r > /home/deployer/monitor/log/Soap5r.cc" else raise "BUILD FAILED, but log directory (/home/deployer/monitor/log) does not exist" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
soap5r-2.0.3 | lib/soap/ci.rake |
soap5r-2.0.2 | lib/soap/ci.rake |
soap5r-2.0.1 | lib/soap/ci.rake |
soap5r-2.0.0 | lib/soap/ci.rake |
soap5r-2.0.0.20120130130121 | lib/soap/ci.rake |