File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ before_install:
2525 "
2626 - |
2727 bash -c " # Configure SSL support
28- sudo bash .travis_ssl.sh
28+ if [[ ! x$OSTYPE =~ ^xdarwin ]]; then
29+ sudo bash .travis_ssl.sh
30+ sudo service mysql restart
31+ fi
2932 "
3033 - mysqld --version
3134 - mysql -u root -e "CREATE DATABASE IF NOT EXISTS test"
@@ -43,6 +46,7 @@ matrix:
4346 allow_failures :
4447 - env : DB=mysql57
4548 - rvm : rbx-2
49+ - os : osx
4650 include :
4751 - rvm : 2.0.0
4852 env : DB=mariadb55
Original file line number Diff line number Diff line change @@ -60,14 +60,5 @@ ssl-cert=/etc/mysql/server-cert.pem
6060ssl-key=/etc/mysql/server-key.pem
6161" >> my.cnf
6262
63- # FIXME The startdate code above isn't doing the trick, we must wait until the minute moves
63+ # Wait until the minute moves to ensure that the SSL cert is within its valid range
6464ruby -e ' start = Time.now.min; while Time.now.min == start; sleep 2; end'
65-
66- # Ok, let's see what we got!
67- set +e
68- if [ " $( uname) " == " Darwin" ]; then
69- brew tap homebrew/boneyard
70- brew services restart mysql
71- else
72- service mysql restart
73- fi
You can’t perform that action at this time.
0 commit comments