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:
25
25
"
26
26
- |
27
27
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
29
32
"
30
33
- mysqld --version
31
34
- mysql -u root -e "CREATE DATABASE IF NOT EXISTS test"
@@ -43,6 +46,7 @@ matrix:
43
46
allow_failures :
44
47
- env : DB=mysql57
45
48
- rvm : rbx-2
49
+ - os : osx
46
50
include :
47
51
- rvm : 2.0.0
48
52
env : DB=mariadb55
Original file line number Diff line number Diff line change @@ -60,14 +60,5 @@ ssl-cert=/etc/mysql/server-cert.pem
60
60
ssl-key=/etc/mysql/server-key.pem
61
61
" >> my.cnf
62
62
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
64
64
ruby -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