diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-11-19 12:49:29 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-11-19 12:49:29 +0100 |
commit | 0c4f5dbb7e8d4de72f26245c6495e73832a9e002 (patch) | |
tree | c014498d0fc675f65c937bf61ac1d6aeeaefb3a3 | |
parent | Thank you, contributors (diff) |
Try to load db schemas externally on travis
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index e3cb5d98c..1a0ad5358 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,9 +33,11 @@ before_script: - mysql -u root -e "CREATE USER 'ejabberd_test'@'localhost' IDENTIFIED BY 'ejabberd_test';" - mysql -u root -e "CREATE DATABASE ejabberd_test;" - mysql -u root -e "GRANT ALL ON ejabberd_test.* TO 'ejabberd_test'@'localhost';" + - mysql -u root ejabberd_test < sql/mysql.sql - psql -U postgres -c "CREATE USER ejabberd_test WITH PASSWORD 'ejabberd_test';" - psql -U postgres -c "CREATE DATABASE ejabberd_test;" - psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE ejabberd_test TO ejabberd_test;" + - psql -U postgres -c "USE ejabberd_test;" -f sql/pg.sql script: - ./autogen.sh |