File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,21 @@ references:
29
29
composer config -g github-protocols https && composer config -g repo.packagist composer https://packagist.org
30
30
rm composer-setup.php
31
31
32
+ install_dockerize : &install_dockerize
33
+ run :
34
+ name : Install Dockerize
35
+ command : |
36
+ wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
37
+ tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
38
+ rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
39
+ environment :
40
+ DOCKERIZE_VERSION : v0.6.1
41
+
42
+ wait_for_mysql : &wait_for_mysql
43
+ run :
44
+ name : Wait for MySQL
45
+ command : dockerize -wait tcp://localhost:3306 -timeout 1m
46
+
32
47
job_phpunit_base : &job_phpunit_base
33
48
docker :
34
49
- image : wordpress:php$CONTAINER_PHP_VERSION-fpm-alpine
@@ -41,6 +56,7 @@ references:
41
56
working_directory : /root/project/phpcompat
42
57
steps :
43
58
- run : apk add --no-cache git subversion
59
+ - *install_dockerize
44
60
- *install_composer
45
61
- checkout
46
62
- run :
@@ -49,6 +65,7 @@ references:
49
65
- *load_composer_cache
50
66
- *composer_install
51
67
- *save_composer_cache
68
+ - *wait_for_mysql
52
69
- run :
53
70
name : WordPress Test Suite Installation
54
71
command : /bin/bash tests/install-wp-tests.sh phpcompat_test phpcompat_user phpcompat_pass 127.0.0.1 $CONTAINER_WP_VERSION true
You can’t perform that action at this time.
0 commit comments