|
|
@ -1,14 +1,13 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
mysql -u root -e 'create database drupal;' |
|
|
|
mysql -u root -e 'create database drupal;' |
|
|
|
mysql -u root -e "create database fedora;" |
|
|
|
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 fedora.* To 'fedora'@'localhost' IDENTIFIED BY 'fedora';" |
|
|
|
mysql -u root -e "GRANT ALL PRIVILEGES ON drupal.* To 'drupal'@'localhost' IDENTIFIED BY 'drupal';" |
|
|
|
mysql -u root -e "GRANT ALL PRIVILEGES ON drupal.* To 'drupal'@'localhost' IDENTIFIED BY 'drupal';" |
|
|
|
cd $HOME |
|
|
|
cd $HOME |
|
|
|
git clone git://github.com/Islandora/tuque.git |
|
|
|
git clone git://github.com/Islandora/tuque.git |
|
|
|
git clone -b $FEDORA_VERSION git://github.com/Islandora/islandora_tomcat.git |
|
|
|
wget http://alpha.library.yorku.ca/islandora_tomcat.$FEDORA_VERSION.tar.gz |
|
|
|
|
|
|
|
tar xf islandora_tomcat.$FEDORA_VERSION.tar.gz |
|
|
|
cd islandora_tomcat |
|
|
|
cd islandora_tomcat |
|
|
|
git fsck |
|
|
|
|
|
|
|
export CATALINA_HOME='.' |
|
|
|
export CATALINA_HOME='.' |
|
|
|
export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -Djavax.net.ssl.trustStore=$CATALINA_HOME/fedora/server/truststore -Djavax.net.ssl.trustStorePassword=tomcat" |
|
|
|
export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -Djavax.net.ssl.trustStore=$CATALINA_HOME/fedora/server/truststore -Djavax.net.ssl.trustStorePassword=tomcat" |
|
|
|
./bin/startup.sh |
|
|
|
./bin/startup.sh |
|
|
@ -18,20 +17,22 @@ pear upgrade --force Console_Getopt |
|
|
|
pear upgrade --force pear |
|
|
|
pear upgrade --force pear |
|
|
|
pear channel-discover pear.drush.org |
|
|
|
pear channel-discover pear.drush.org |
|
|
|
|
|
|
|
|
|
|
|
# "prefer-source" required due to SSL shenanigans on the Travis boxes... |
|
|
|
wget http://alpha.library.yorku.ca/drush-6.3.tar.gz |
|
|
|
composer global require --prefer-source 'squizlabs/php_codesniffer=*' 'sebastian/phpcpd=*' 'drush/drush:6.3.0' |
|
|
|
tar xf drush-6.3.tar.gz |
|
|
|
# Because we can't add to the PATH here and this file is used in many repos, |
|
|
|
sudo mv drush-6.3 /opt/ |
|
|
|
# let's just throw symlinks in. |
|
|
|
sudo ln -s /opt/drush-6.3/drush /usr/bin/drush |
|
|
|
find $HOME/.composer/vendor/bin -executable \! -type d -exec sudo ln -s {} /usr/local/sbin/ \; |
|
|
|
|
|
|
|
|
|
|
|
wget http://alpha.library.yorku.ca/PHP_CodeSniffer-1.5.4.tgz |
|
|
|
|
|
|
|
pear install PHP_CodeSniffer-1.5.4.tgz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wget http://alpha.library.yorku.ca/phpcpd.phar |
|
|
|
|
|
|
|
sudo mv phpcpd.phar /usr/local/bin/phpcpd |
|
|
|
|
|
|
|
sudo chmod +x /usr/local/bin/phpcpd |
|
|
|
|
|
|
|
|
|
|
|
phpenv rehash |
|
|
|
phpenv rehash |
|
|
|
drush dl --yes drupal |
|
|
|
drush dl --yes drupal |
|
|
|
cd drupal-* |
|
|
|
cd drupal-* |
|
|
|
drush si minimal --db-url=mysql://drupal:drupal@localhost/drupal --yes |
|
|
|
drush si minimal --db-url=mysql://drupal:drupal@localhost/drupal --yes |
|
|
|
# Needs to make things from Composer be available (PHP CS, primarily) |
|
|
|
|
|
|
|
sudo chmod a+w sites/default/settings.php |
|
|
|
|
|
|
|
echo "include_once '$HOME/.composer/vendor/autoload.php';" >> sites/default/settings.php |
|
|
|
|
|
|
|
sudo chmod a-w sites/default/settings.php |
|
|
|
|
|
|
|
drush runserver --php-cgi=$HOME/.phpenv/shims/php-cgi localhost:8081 &>/tmp/drush_webserver.log & |
|
|
|
drush runserver --php-cgi=$HOME/.phpenv/shims/php-cgi localhost:8081 &>/tmp/drush_webserver.log & |
|
|
|
ln -s $ISLANDORA_DIR sites/all/modules/islandora |
|
|
|
ln -s $ISLANDORA_DIR sites/all/modules/islandora |
|
|
|
mv sites/all/modules/islandora/tests/travis.test_config.ini sites/all/modules/islandora/tests/test_config.ini |
|
|
|
mv sites/all/modules/islandora/tests/travis.test_config.ini sites/all/modules/islandora/tests/test_config.ini |
|
|
|