mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
22 lines
670 B
Bash
Executable File
22 lines
670 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ "$TRAVIS_BUILD_ID" = "1" ]
|
|
then
|
|
export CCOMPILERC="clang-6.0"
|
|
export CCOMPILERCXX="clang++-6.0"
|
|
|
|
echo "set root password"
|
|
export DB_RND_NAME=$(cat /dev/urandom | tr -dc 'a-z' | fold -w 5 | head -n 1)
|
|
sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('$DB_RND_NAME') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
|
|
sudo mysql_upgrade -u root -p$DB_RND_NAME
|
|
sudo service mysql restart
|
|
printf "[client]\npassword=%s" "$DB_RND_NAME" >~/.my.cnf
|
|
chmod 400 ~/.my.cnf
|
|
elif [ "$TRAVIS_BUILD_ID" = "2" ]
|
|
then
|
|
export CCOMPILERC="clang-7"
|
|
export CCOMPILERCXX="clang++-7"
|
|
fi
|