-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
70 lines (69 loc) · 3.41 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
definitions:
services:
mysql:
image: mysql:5.7
variables:
MYSQL_DATABASE: sylius_test
MYSQL_ROOT_PASSWORD: root
image: php:7.3
pipelines:
default:
- step:
name: "Unit and component tests"
caches:
- composer
script:
- apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev git zip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- COMPOSER_MEMORY_LIMIT=-1 composer install --no-scripts --ignore-platform-reqs
- php vendor/bin/phpunit -c phpunit.xml.dist
# - step:
# name: "Behat scenarios"
# services:
# - mysql
# caches:
# - composer
# script:
# - >
# set -ex
#
# mkdir -p public/media/image
#
# export APP_ENV=test
# export DATABASE_URL=mysql://root:root@localhost:3306/sylius_test
#
# (cd tests/Application && APP_ENV=test php bin/console doctrine:schema:update --force --no-interaction -v)
# (cd tests/Application && symfony serve --port=8080 --no-tls -d)
#
# - >
# google-chrome-stable --headless \
# --no-sandbox \
# --disable-gpu \
# --no-default-browser-check \
# --remote-debugging-port=9222 \
# --remote-debugging-address=127.0.0.1 \
# --user-data-dir=/tmp/chrome-data \
# --enable-automation \
# --disable-background-networking \
# --no-first-run \
# --disable-popup-blocking \
# --disable-default-apps \
# --allow-insecure-localhost \
# --disable-translate \
# --disable-extensions \
# --enable-features=Metal \
# --window-size=1920,1080 \
# --proxy-server='direct://' \
# --proxy-bypass-list='*' \
# --ignore-certificate-errors \
# http://127.0.0.1:8080/ &
# - step:
# name: "Static analysis"
# caches:
# - composer
# script:
# - apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev git zip
# - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# - COMPOSER_MEMORY_LIMIT=-1 composer install --no-scripts --ignore-platform-reqs
# - php vendor/bin/phpstan analyse -c phpstan.neon -l max src/
# - php vendor/bin/psalm