Permalink
Browse files

Ensure all PHPUnit tests are executed on Travis

Fixes #17229

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information...
1 parent 0748f79 commit 43d33f698d4e3bbd22dd8cfd6eb00fe8a4aa0eb0 @rombert rombert committed with dregad Apr 17, 2014
Showing with 12 additions and 0 deletions.
  1. +12 −0 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_inc.php
SQL_CREATE_DB="CREATE DATABASE $MANTIS_DB_NAME;"
SQL_CREATE_PROJECT="INSERT INTO mantis_project_table
@@ -146,4 +147,15 @@ 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
+
+ \$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"

0 comments on commit 43d33f6

Please sign in to comment.