Run the selective specs task only in the CI environment.

This should fix a problem in staging and development environments: an error is raised because 'rspec/core/rake_task' is being required, but the rspec gem is not installed in staging and development environments.