Skip to content

Commit 494d6cb

Browse files
committed
Add localhost tests to Travis.
Run the local servers and verify they respond with code 200 to the "/" path. Note: bookshelf does not yet run in Travis, since we'll need to set up client secrets credentials.
1 parent 89c888d commit 494d6cb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/test-localhost.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@
1616
# Usage:
1717
# test-localhost.sh deployment-type path/to/project -- [maven arguments]
1818
#
19-
# This script runs the local appengine:devserver Maven plugin and verifies that
20-
# a request to http://localhost:8080/ does not return an error code.
21-
#
22-
# As an example, this is useful for verifying that datastore-indexes.xml is
23-
# correct (only if autoGenerate=false and the / handler does all queries used),
24-
# as an example.
19+
# This script runs a localhost server Maven plugin and verifies that a request
20+
# to http://localhost:8080/ does not return an error code.
2521

2622
print_usage () {
2723
echo "Usage:" >&2
@@ -30,6 +26,7 @@ print_usage () {
3026
echo "server-type can be any of the following:" >&2
3127
echo " appengine" >&2
3228
echo " jetty" >&2
29+
echo " spring-boot" >&2
3330
}
3431

3532
if [[ -z "$1" ]]; then
@@ -46,6 +43,10 @@ case $1 in
4643
mvn_plugin="jetty:run-exploded"
4744
server_started_message="Started Jetty Server"
4845
;;
46+
spring-boot)
47+
mvn_plugin="spring-boot:run"
48+
server_started_message="Tomcat started on port(s): 8080 (http)"
49+
;;
4950
*)
5051
print_usage
5152
exit 1

0 commit comments

Comments
 (0)