Bitbucket
Last updated
Was this helpful?
Was this helpful?
clone:
depth: 1
options:
max-time: 10
pipelines:
default:
- step:
name: Check Code
services:
- docker
caches:
- docker
script:
- docker run --rm -p 80:80 --name=shopware -e PHP_VERSION=8.1 -v $BITBUCKET_CLONE_DIR:/var/www/html -d dockware/web:latest
- docker exec shopware bash -c 'make dev'
- docker exec shopware bash -c 'make phpunit -B'
- docker exec shopware bash -c 'make stan -B'image: dockware/web:latest
clone:
depth: 1
options:
max-time: 10
pipelines:
default:
- step:
name: PHPUnit
caches:
- dockware-composer
- node
script:
- composer install
- php vendor/bin/phpunit --configuration phpunit.xml.dist
definitions:
caches:
dockware-composer: /var/www/.cache/composer
node: /var/www/.npm