diff --git a/scripts/travis_before_script.sh b/scripts/travis_before_script.sh index 6f072580df..5fb9e911c0 100755 --- a/scripts/travis_before_script.sh +++ b/scripts/travis_before_script.sh @@ -11,6 +11,7 @@ HOSTNAME=localhost PORT=8080 MANTIS_DB_NAME=bugtracker MANTIS_BOOTSTRAP=tests/bootstrap.php +MANTIS_CONFIG=config/config_inc.php SQL_CREATE_DB="CREATE DATABASE $MANTIS_DB_NAME;" SQL_CREATE_PROJECT="INSERT INTO mantis_project_table @@ -146,4 +147,16 @@ cat <<-EOF >> $MANTIS_BOOTSTRAP \$GLOBALS['MANTIS_TESTSUITE_SOAP_HOST'] = 'http://$HOSTNAME:$PORT/api/soap/mantisconnect.php?wsdl'; EOF +echo "Adding custom configuration options" +sudo chmod 777 $MANTIS_CONFIG +cat <<-EOF >> $MANTIS_CONFIG + + # Configs required to ensure all PHPUnit tests are executed + \$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"