#!/usr/bin/env rake require "bundler/gem_tasks" puts "Entity suffix is #{ENV["TRAVIS_JOB_ID"] || "_local"}" begin require 'rspec/core/rake_task' desc "Run Integration Tests" RSpec::Core::RakeTask.new(:integration) do |t| t.pattern = FileList["spec/integration/**/*#{ENV['PATTERN']}*_spec.rb"] end desc "Run Unit Tests" RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = FileList["spec/lib/auth0/**/*#{ENV['PATTERN']}*_spec.rb"] end desc "Run All Suites" RSpec::Core::RakeTask.new(:all) task :default => :spec rescue LoadError #No RSpec end