mistercrunch closed pull request #3922: [travis] Standardizing before_install
URL: https://github.com/apache/incubator-superset/pull/3922
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
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
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services