From 285197926ecc6e75c0bbb884174b19a58721252e Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Tue, 21 Nov 2017 22:10:17 -0800 Subject: [PATCH] [travis] Standardizing before_install (#3922) --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4641daadd6..d32057c8d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,11 +22,11 @@ env: before_install: - npm install -g npm@'>=5.4.1' before_script: - - mysql -e 'drop database if exists superset; create database superset DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci' -u root + - mysql -u root -e "DROP DATABASE IF EXISTS superset; CREATE DATABASE superset DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci" - mysql -u root -e "CREATE USER 'mysqluser'@'localhost' IDENTIFIED BY 'mysqluserpassword';" - mysql -u root -e "GRANT ALL ON superset.* TO 'mysqluser'@'localhost';" - - psql -c 'create database superset;' -U postgres - - psql -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';" -U postgres + - psql -U postgres -c "CREATE DATABASE superset;" + - psql -U postgres -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';" - export PATH=${PATH}:/tmp/hive/bin install: - pip install --upgrade pip