Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enable all tests on Travis

Fixes #17229, #165
  • Loading branch information...
commit e1ab941690f2557799ba958f80bc565c0c96f8cf 2 parents 0748f79 + 35ce9d7
@dregad dregad authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 scripts/travis_before_script.sh
View
13 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"
Please sign in to comment.
Something went wrong with that request. Please try again.