@@ -19,7 +19,7 @@ wait_until_solr_responds() {
19
19
20
20
case $GEM in
21
21
" sunspot" )
22
-
22
+
23
23
cd sunspot
24
24
/bin/echo -n " Starting Solr on port 8983 for Sunspot specs..."
25
25
bundle install --quiet --path vendor/bundle
@@ -28,20 +28,20 @@ case $GEM in
28
28
bundle exec sunspot-solr start -p 8983
29
29
wait_until_solr_responds 8983
30
30
/bin/echo " done."
31
-
31
+
32
32
# Invoke the sunspot specs
33
33
bundle exec rake spec
34
34
rv=$?
35
-
35
+
36
36
/bin/echo -n " Stopping Solr... "
37
37
bundle exec sunspot-solr stop
38
38
/bin/echo " done."
39
39
40
40
exit $rv
41
41
;;
42
-
42
+
43
43
" sunspot_rails" )
44
-
44
+
45
45
cd sunspot
46
46
/bin/echo -n " Starting Solr on port 8983 for Sunspot specs..."
47
47
bundle install --quiet --path vendor/bundle
@@ -50,15 +50,15 @@ case $GEM in
50
50
bundle exec sunspot-solr start -p 8983
51
51
wait_until_solr_responds 8983
52
52
/bin/echo " done."
53
-
53
+
54
54
# Install gems for test Rails application
55
55
# Allow user to pass in SPEC_OPTS that are passed to spec in order to specify
56
56
# things like the random test seed in order to replicate results from failed tests.
57
57
# e.g. GEM=sunspot_rails RAILS=4.0.0 SPEC_OPTS="--order random:64549" travis.sh
58
58
cd ../sunspot_rails
59
59
rake spec RAILS=$RAILS SPEC_OPTS=" $SPEC_OPTS "
60
60
rv=$?
61
-
61
+
62
62
# Cleanup Solr
63
63
/bin/echo -n " Stopping Solr... "
64
64
cd ../sunspot
@@ -67,6 +67,13 @@ case $GEM in
67
67
68
68
exit $rv
69
69
;;
70
-
70
+
71
+ " sunspot_solr" )
72
+
73
+ cd sunspot_solr
74
+ bundle install --quiet --path vendor/bundle
75
+ bundle exec rake spec
76
+ exit $?
77
+ ;;
71
78
* )
72
79
esac
0 commit comments