-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
43 lines (39 loc) · 1.13 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
image: wodby/drupal-php:7.4-dev
codingStandards: &codingStandards
- step:
name: Check coding standards
caches:
- composer
- docker
script:
- /docker-entrypoint.sh
- composer install --ignore-platform-reqs --optimize-autoloader --prefer-dist
- ./vendor/bin/phpqa --config=.phpqa
artifacts:
- reports/**
services:
- docker
tests: &tests
- step:
name: Run PHP tests
caches:
- composer
- docker
script:
- /docker-entrypoint.sh
- composer install --ignore-platform-reqs --optimize-autoloader --prefer-dist
# todo: use a standalone database!.
- export SIMPLETEST_BASE_URL=http://localhost
- export SIMPLETEST_DB=sqlite://localhost/sites/simpletest/db.sqlite
- ./vendor/bin/robo phpunit -- --no-coverage --filter unit ./web/modules/custom
- ./vendor/bin/robo phpunit -- --no-coverage --filter kernel ./web/modules/custom
services:
- docker
pipelines:
default:
- <<: *codingStandards
- <<: *tests
definitions:
services:
docker:
memory: 2048