mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 18:57:51 +08:00
12 lines
385 B
Bash
Executable File
12 lines
385 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
TRAVIS_BUILD_DIR="${TRAVIS_BUILD_DIR:-$(dirname $(dirname $CURRENT_DIR))}"
|
|
|
|
echo -e "Create MySQL database..."
|
|
mysql -u root -e "CREATE DATABASE IF NOT EXISTS hyperf charset=utf8mb4 collate=utf8mb4_unicode_ci;"
|
|
cat "${TRAVIS_BUILD_DIR}/.travis/hyperf.sql" | mysql -u root hyperf
|
|
|
|
echo -e "Done\n"
|
|
|
|
wait |