#!/bin/bash

git submodule update --init --recursive

# Install libgda MySQL connector
sudo apt-get install -y libgda-4.0-mysql

# Create the database
mysql -e 'create database midgard2_test;'

# Install Midgard2
./lib/vendor/Midgard/PHPCR/tests/travis_midgard.sh

# Copy PHPCR schemas to Midgard's global schema dir
sudo cp -r ./lib/vendor/Midgard/PHPCR/data/share/* /usr/share/midgard2
sudo cp ./data/share/odm_schemas.xml /usr/share/midgard2/schema

Add the Midgard MySQL installer file
Add the Midgard MySQL installer file
