Skip to content
Browse files

Travis before script: use variable for port number

This facilitates local debugging using the PHP built-in web server when
there is another one running on default port 80.
  • Loading branch information...
1 parent 2b5a700 commit 21d0f53188eb7ee51d3bdc1f77dd0fcf09e9bc20 @dregad dregad committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 scripts/travis_before_script.sh
View
5 scripts/travis_before_script.sh
@@ -5,6 +5,7 @@
# Global variables initialization
HOSTNAME=localhost
+PORT=80
MANTIS_DB_NAME=bugtracker
MANTIS_BOOTSTRAP=tests/bootstrap.php
@@ -82,7 +83,7 @@ else
# get path of PHP as the path is not in $PATH for sudo
myphp=$(which php)
# sudo needed for port 80
- sudo $myphp -S $HOSTNAME:80 &
+ sudo $myphp -S $HOSTNAME:$PORT &
fi
# wait until server is up
@@ -114,7 +115,7 @@ do
done
# trigger installation
-curl --data "${query_string:1}" http://$HOSTNAME/admin/install.php
+curl --data "${query_string:1}" http://$HOSTNAME:$PORT/admin/install.php
# -----------------------------------------------------------------------------

0 comments on commit 21d0f53

Please sign in to comment.
Something went wrong with that request. Please try again.