Skip to content

Commit

Permalink
Merge pull request #2267 from weiznich/fix/ci
Browse files Browse the repository at this point in the history
Fix the CI
  • Loading branch information
weiznich authored Jan 15, 2020
2 parents f5b15e5 + 325a3f3 commit 20fb020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +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
setup:
- bash: |
brew update &&
brew install mysql &&
brew services start mysql &&
brew services stop mysql;sleep 3;brew services start mysql &&
sleep 2 &&
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/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
2 changes: 1 addition & 1 deletion diesel_cli/tests/support/project_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl Project {

let mut db_url =
url::Url::parse(&env::var_os(var).unwrap().into_string().unwrap()).unwrap();
db_url.set_path(&format!("diesel_{}", &self.name));
db_url.set_path(&format!("/diesel_{}", &self.name));
db_url
}

Expand Down

0 comments on commit 20fb020

Please sign in to comment.