rosa-build/travis.sh

22 lines
663 B
Bash
Raw Normal View History

#!/bin/bash -e
rspec="bundle exec rspec"
if [ $SPEC_GROUP = 'controllers' ]
then
2013-09-16 15:19:02 +01:00
$rspec spec/controllers/*_spec.rb spec/controllers/admin/ spec/controllers/groups/ spec/controllers/projects/ spec/controllers/users/
elif [ $SPEC_GROUP = 'platform_controllers' ]
then
$rspec spec/controllers/platforms/
elif [ $SPEC_GROUP = 'api' ]
then
$rspec spec/controllers/api/
elif [ $SPEC_GROUP = 'models' ]
then
$rspec spec/models/ spec/jobs/
elif [ $SPEC_GROUP = 'others' ]
then
2014-03-18 22:00:24 +00:00
# $rspec spec/helpers/ spec/integration/ spec/lib/ spec/mailers/ spec/mailers/ spec/routing/
$rspec spec/integration/ spec/services/ spec/mailers/ spec/mailers/ spec/routing/
fi