Travis
This commit is contained in:
parent
5afcc0ba46
commit
8a0317c91c
@ -15,12 +15,11 @@ services:
|
|||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
mariadb: '10.0'
|
|
||||||
postgresql: '9.3'
|
postgresql: '9.3'
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
# To use the last version of pgloader, we add repo of postgresql
|
# To use the last version of pgloader, we add repo of postgresql with a name available in http://apt.postgresql.org/pub/repos/apt/
|
||||||
- pgdg-trusty
|
- pgdg-xenial
|
||||||
packages:
|
packages:
|
||||||
# We need a webserver to test the webservices
|
# We need a webserver to test the webservices
|
||||||
# Let's install Apache with.
|
# Let's install Apache with.
|
||||||
@ -195,7 +194,7 @@ before_script:
|
|||||||
echo "Setting up database"
|
echo "Setting up database"
|
||||||
if [ "$DB" = 'mysql' ] || [ "$DB" = 'mariadb' ] || [ "$DB" = 'postgresql' ]; then
|
if [ "$DB" = 'mysql' ] || [ "$DB" = 'mariadb' ] || [ "$DB" = 'postgresql' ]; then
|
||||||
echo "MySQL"
|
echo "MySQL"
|
||||||
mysql -h 127.0.0.1 -u root -e 'DROP DATABASE IF EXISTS travis;'
|
mysql -u root -S -e 'DROP DATABASE IF EXISTS travis;'
|
||||||
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS travis;'
|
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS travis;'
|
||||||
mysql -u travis -e 'GRANT ALL PRIVILEGES ON travis.* TO travis@127.0.0.1;'
|
mysql -u travis -e 'GRANT ALL PRIVILEGES ON travis.* TO travis@127.0.0.1;'
|
||||||
mysql -e 'FLUSH PRIVILEGES;'
|
mysql -e 'FLUSH PRIVILEGES;'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user