Skip to content

Commit 877ec71

Browse files
committed
enable mysql in travis via services key
1 parent 4a2186d commit 877ec71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sudo: required
22
dist: trusty
3+
services: mysql
34

45
# Add encrypted env variables, used for setting up the test environment
56
env:
@@ -13,7 +14,7 @@ env:
1314

1415
before_script:
1516
# Change the default user-password pair for mysql (pre-installed on Travis CI)
16-
- mysql -u root -e "UPDATE user SET Password=PASSWORD('hello') WHERE User='root';FLUSH PRIVILEGES;" mysql
17+
- mysql -u root -e "UPDATE user SET Password=PASSWORD('hello') WHERE User='root';FLUSH PRIVILEGES;"
1718
- sudo service mysql restart
1819
# Install our app
1920
- scripts/travis_install.sh

0 commit comments

Comments
 (0)