From 877ec71f0cb93655f44c2d31af88bfdad12ee915 Mon Sep 17 00:00:00 2001 From: Pavlos Ratis Date: Wed, 11 Nov 2015 14:01:04 +0200 Subject: [PATCH] enable mysql in travis via services key --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ce9b3013..25edb4ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ sudo: required dist: trusty +services: mysql # Add encrypted env variables, used for setting up the test environment env: @@ -13,7 +14,7 @@ env: before_script: # Change the default user-password pair for mysql (pre-installed on Travis CI) - - mysql -u root -e "UPDATE user SET Password=PASSWORD('hello') WHERE User='root';FLUSH PRIVILEGES;" mysql + - mysql -u root -e "UPDATE user SET Password=PASSWORD('hello') WHERE User='root';FLUSH PRIVILEGES;" - sudo service mysql restart # Install our app - scripts/travis_install.sh