Skip to content

Commit

Permalink
Enable all tests on Travis
Browse files Browse the repository at this point in the history
Fixes #17229, #165
  • Loading branch information
dregad committed Jun 23, 2014
2 parents 0748f79 + 35ce9d7 commit e1ab941
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/travis_before_script.sh
Expand Up @@ -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
Expand Down Expand Up @@ -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"

0 comments on commit e1ab941

Please sign in to comment.