Browse Source

Merge pull request #340 from jonathangreen/7.x-fix-travis

Attempt to fix travis
pull/342/merge
Jonathan Green 12 years ago
parent
commit
375fa43714
  1. 2
      includes/ingest.form.inc
  2. 16
      tests/scripts/travis_setup.sh

2
includes/ingest.form.inc

@ -78,7 +78,7 @@ function islandora_ingest_form_init_form_state_storage(array &$form_state, array
if (empty($objects)) { if (empty($objects)) {
$objects[] = islandora_ingest_form_prepare_new_object($configuration); $objects[] = islandora_ingest_form_prepare_new_object($configuration);
} }
// Make sure the models actually exist // Make sure the models actually exist.
foreach ($configuration['models'] as $key => $model) { foreach ($configuration['models'] as $key => $model) {
if (!islandora_object_load($model)) { if (!islandora_object_load($model)) {
unset($configuration['models'][$key]); unset($configuration['models'][$key]);

16
tests/scripts/travis_setup.sh

@ -11,12 +11,16 @@ cd islandora_tomcat
export CATALINA_HOME='.' export CATALINA_HOME='.'
./bin/startup.sh ./bin/startup.sh
cd $HOME cd $HOME
pyrus channel-discover pear.drush.org pear upgrade –force Console_Getopt
pyrus channel-discover pear.phpqatools.org pear upgrade –force pear
pyrus channel-discover pear.netpirates.net pear upgrade-all
pyrus install drush/drush pear channel-discover pear.drush.org
pyrus install pear/PHP_CodeSniffer pear channel-discover pear.drush.org
pyrus install pear.phpunit.de/phpcpd pear channel-discover pear.phpqatools.org
pear channel-discover pear.netpirates.net
pear install pear/PHP_CodeSniffer
pear install pear.phpunit.de/phpcpd
pear install drush/drush
phpenv rehash phpenv rehash
drush dl --yes drupal drush dl --yes drupal
cd drupal-* cd drupal-*

Loading…
Cancel
Save