Skip to content

Commit

Permalink
Fix CI during installing MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed May 22, 2020
1 parent 45da010 commit 6c5f430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Expand Up @@ -46,15 +46,15 @@ jobs:
MYSQL_EXAMPLE_DATABASE_URL: mysql://root@localhost/diesel_example
MYSQL_UNIT_TEST_DATABASE_URL: mysql://root@localhost/diesel_unit_test
RUST_TEST_THREADS: 1
MYSQLCLIENT_LIB_DIR: /usr/local/Cellar/mysql/8.0.19/lib
MYSQLCLIENT_LIB_DIR: /usr/local/Cellar/mysql/8.0.19_1/lib
setup:
- script: |
brew update &&
brew install mysql &&
brew services start mysql &&
brew services stop mysql;sleep 3;brew services start mysql &&
sleep 2 &&
/usr/local/Cellar/mysql/8.0.19/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot
/usr/local/Cellar/mysql/8.0.19_1/bin/mysql -e "create database diesel_test; create database diesel_unit_test; grant all on \`diesel_%\`.* to 'root'@'localhost';" -uroot
displayName: Install mysql
- template: _build/azure-pipelines-template.yml
Expand Down

0 comments on commit 6c5f430

Please sign in to comment.