Skip to content

Commit

Permalink
Create phpunit service in docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen authored and ockham committed Apr 30, 2020
1 parent a16fa60 commit 6fb0e92
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/env/lib/build-docker-compose-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,24 @@ module.exports = function buildDockerComposeConfig( config ) {
image: 'composer',
volumes: [ `${ config.configDirectoryPath }:/app` ],
},
phpunit: {
image: 'wordpressdevelop/phpunit',
init: true,
depends_on: [ 'mysql' ],
volumes: [
...developmentMounts,
'phpunit-uploads:/var/www/html/wp-content/uploads',
],
environment: {
LOCAL_DIR: 'html',
},
},
},
volumes: {
...( ! config.coreSource && { wordpress: {} } ),
...( ! config.coreSource && { 'tests-wordpress': {} } ),
mysql: {},
'phpunit-uploads': {},
},
};
};

0 comments on commit 6fb0e92

Please sign in to comment.