Sha256: 8e9e01c66bc98ebcedf505aa31588ad04b380d892f8192577e0b7b164ef8e24d
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
require "bundler/gem_tasks" require 'cane/rake_task' require 'rspec/core/rake_task' ENV['coverage'] = 'true' task default: :ci desc "Run all test suites" task ci: [:spec, :cane] RSpec::Core::RakeTask.new do |rspec| rspec.rspec_opts = '--tag ~acceptance' end Cane::RakeTask.new do |cane| cane.add_threshold 'coverage/.last_run.json', :>=, 90 end desc "Test deploying the demo plugin to a Vagrant box" task :vagrant do [ ['vagrant up', 'Bringing up Debian Wheezy Vagrant box'], ['bin/whipped-cream deploy demo.rb 127.0.0.1:2222', 'Performing initial deploy'], ['bin/whipped-cream deploy demo.rb 127.0.0.1:2222', 'Performing subsequent deploy'], ['REMOTE_URL="http://127.0.0.1:8080" rspec --tag acceptance', 'Running acceptance tests against Vagrant box'] ].each do |command, description| puts yellow(description) puts cyan(?` + command + ?`) unless system(command) raise "Command failed: '#{command}'" end end end def yellow(text) color(3, text) end def cyan(text) color(6, text) end def color(number, text) `tput setaf #{number}` + text + `tput sgr0` end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
whipped-cream-0.2.0.beta1 | Rakefile |
whipped-cream-0.1.1 | Rakefile |