Skip to content

Commit

Permalink
Ensure all PHPUnit tests are executed on Travis
Browse files Browse the repository at this point in the history
Fixes #17229

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information
rombert authored and dregad committed Jun 23, 2014
1 parent 0748f79 commit 43d33f6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/travis_before_script.sh
Expand Up @@ -11,6 +11,7 @@ HOSTNAME=localhost
PORT=8080 PORT=8080
MANTIS_DB_NAME=bugtracker MANTIS_DB_NAME=bugtracker
MANTIS_BOOTSTRAP=tests/bootstrap.php MANTIS_BOOTSTRAP=tests/bootstrap.php
MANTIS_CONFIG=config_inc.php


SQL_CREATE_DB="CREATE DATABASE $MANTIS_DB_NAME;" SQL_CREATE_DB="CREATE DATABASE $MANTIS_DB_NAME;"
SQL_CREATE_PROJECT="INSERT INTO mantis_project_table SQL_CREATE_PROJECT="INSERT INTO mantis_project_table
Expand Down Expand Up @@ -146,4 +147,15 @@ cat <<-EOF >> $MANTIS_BOOTSTRAP
\$GLOBALS['MANTIS_TESTSUITE_SOAP_HOST'] = 'http://$HOSTNAME:$PORT/api/soap/mantisconnect.php?wsdl'; \$GLOBALS['MANTIS_TESTSUITE_SOAP_HOST'] = 'http://$HOSTNAME:$PORT/api/soap/mantisconnect.php?wsdl';
EOF EOF


echo "Adding custom configuration options"
sudo chmod 777 $MANTIS_CONFIG
cat <<-EOF >> $MANTIS_CONFIG
\$g_allow_no_category = ON;
\$g_due_date_update_threshold = DEVELOPER;
\$g_due_date_view_threshold = DEVELOPER;
\$g_enable_project_documentation = ON;
\$g_time_tracking_enabled = ON;
EOF

step "Before-script execution completed successfully" step "Before-script execution completed successfully"

0 comments on commit 43d33f6

Please sign in to comment.