Browse Source

Merge branch 'travis' of github.com:jonathangreen/islandora into travis

pull/301/head
jonathangreen 12 years ago
parent
commit
901dd69c5d
  1. 36
      .travis.yml
  2. 6
      tests/travis.test_config.ini

36
.travis.yml

@ -0,0 +1,36 @@
language: php
php:
- 5.3
before_install:
- mysql -u root -e 'create database drupal;'
- mysql -u root -e "create database fedora;"
- mysql -u root -e "GRANT ALL PRIVILEGES ON fedora.* To 'fedora'@'localhost' IDENTIFIED BY 'fedora';"
- mysql -u root -e "GRANT ALL PRIVILEGES ON drupal.* To 'drupal'@'localhost' IDENTIFIED BY 'drupal';"
- cd $HOME
- sudo apt-get update -qq
- sudo apt-get install -qq php5-cgi
- sudo apt-get install -qq php5-mysql
- git clone git://github.com/Islandora/tuque.git
- git clone git://github.com/Islandora/islandora_tomcat.git
- cd islandora_tomcat
- export CATALINA_HOME='.'
- ./bin/startup.sh
- cd $HOME
- pyrus channel-discover pear.drush.org
- pyrus install drush/drush
- phpenv rehash
- sudo -u www-data phpenv rehash
- drush dl --yes drupal
- cd drupal-*
- drush si standard --db-url=mysql://drupal:drupal@localhost/drupal --yes
- drush runserver localhost:8081 > /dev/null &
- ln -s $TRAVIS_BUILD_DIR sites/all/modules/islandora
- mv sites/all/modules/islandora/tests/travis.test_config.ini sites/all/modules/islandora/tests/test_config.ini
- mkdir sites/all/libraries
- ln -s $HOME/tuque sites/all/libraries/tuque
- drush en --yes simpletest
- drush en --user=1 --yes islandora
- drush cc all
- sleep 4
script:
- sudo -u www-data drush test-run --uri=http://localhost:8081 Islandora

6
tests/travis.test_config.ini

@ -0,0 +1,6 @@
[fedora]
fedora_url = "http://localhost:8080/fedora"
use_drupal_filter = TRUE
drupal_filter_file = "/home/travis/islandora_tomcat/fedora/server/config/filter-drupal.xml"
admin_user = "fedoraAdmin"
admin_pass = "fedoraAdmin"
Loading…
Cancel
Save