Skip to content

Commit 0f241e4

Browse files
committed
DAP-001 Disable auto-started daemons during travis check
1 parent 856abfc commit 0f241e4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.travis.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ install:
4646
- echo "<?php error_reporting(-1); ini_set('display_errors', 1); if (mysqli_connect(gethostbyname('mysql'), 'root', '')) { echo 'YES'; } else { echo 'NO ' . mysqli_connect_error(); }" > ~/www/mysql_ip.php
4747

4848

49+
###
50+
### Disable auto-started daemons
51+
###
52+
before_script:
53+
54+
# Disable services enabled by default
55+
# http://docs.travis-ci.com/user/database-setup/#MySQL
56+
- sudo /etc/init.d/mysql stop
57+
- sudo /etc/init.d/postgresql stop
58+
4959

5060
###
5161
### Test
@@ -85,7 +95,6 @@ script:
8595
- docker rm "${MY_DOCKER_NAME}"
8696

8797

88-
8998
##
9099
## 02.) [a](DEBUG) Test docker with external mounted directory
91100
##
@@ -127,7 +136,6 @@ script:
127136
- docker rm "${MY_DOCKER_NAME}"
128137

129138

130-
131139
##
132140
## 03.) [a](DEBUG) Test docker with external mounted directory and PHP-FPM support
133141
##
@@ -194,7 +202,6 @@ script:
194202
- docker rm "${MY_DOCKER_NAME}"
195203

196204

197-
198205
##
199206
## 04.) [a](DEBUG) Test docker with external mounted directory and PHP-FPM support and MySQL support
200207
##

0 commit comments

Comments
 (0)