#!/usr/bin/env rake require "bundler/gem_tasks" begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) rescue LoadError $stderr.puts "RSpec Rake tasks not available in environment #{ENV['RACK_ENV']}" end task :jenkins do if ENV['BUILD_NUMBER'] File.write('build_number', ENV['BUILD_NUMBER']) end require 'ci/reporter/rake/rspec' Rake::Task["ci:setup:rspec"].invoke Rake::Task["spec"].invoke end task default: :spec