Skip to content

Commit

Permalink
enable mysql in travis via services key
Browse files Browse the repository at this point in the history
  • Loading branch information
dastergon committed Nov 11, 2015
1 parent 4a2186d commit 877ec71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
sudo: required
dist: trusty
services: mysql

# Add encrypted env variables, used for setting up the test environment
env:
Expand All @@ -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
Expand Down

0 comments on commit 877ec71

Please sign in to comment.