-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from imdrasil/v0.5.0
Release V0.5.0
- Loading branch information
Showing
117 changed files
with
4,178 additions
and
1,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set -exo pipefail | ||
|
||
if [ "$DB" == 'postgres' ] || [ "$PAIR" == '1' ]; then | ||
# Create database for postgres | ||
psql -c 'create database jennifer_test;' -U postgres | ||
fi | ||
|
||
if [ "$DB" == 'mysql' ] || [ "$PAIR" == '1' ]; then | ||
# Install newer MySQL | ||
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com A4A9406876FCBD3C456770C88C718D3B5072E1F5 | ||
wget http://dev.mysql.com/get/mysql-apt-config_0.8.1-1_all.deb | ||
sudo dpkg -i mysql-apt-config_0.8.1-1_all.deb | ||
sudo apt-get update -q | ||
sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server | ||
sudo mysql_upgrade -u root --force | ||
sudo service mysql restart | ||
|
||
# Create database for mysql | ||
crystal ./examples/run.cr -- db:create | ||
fi | ||
|
||
crystal ./examples/run.cr -- db:migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.