-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
executable file
·53 lines (47 loc) · 1.27 KB
/
.gitlab-ci.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
image: "sashas777/magento-php:7.4-cli"
stages:
- build
- test
cache:
paths:
- ~/.composer/cache/
install:
stage: build
cache:
key: $CI_COMMIT_SHA
paths:
- vendor/
- composer.lock
script:
- composer config --global http-basic.repo.magento.com $COMPOSER_USER $COMPOSER_PASSWORD
- composer require --dev thesgroup/magento2-testing-framework --no-update
- composer install --no-scripts --no-suggest --no-ansi --no-interaction --no-progress
phpcs:
stage: test
cache:
key: $CI_COMMIT_SHA
paths:
- vendor/
script:
- vendor/bin/phpcs --config-set installed_paths vendor/magento/magento-coding-standard,vendor/phpcompatibility/php-compatibility/PHPCompatibility
- vendor/bin/phpunit -c vendor/thesgroup/magento2-testing-framework/static/integrity/phpunit.xml
eslint:
stage: test
cache:
key: $CI_COMMIT_SHA
paths:
- vendor/
script:
- vendor/bin/js-tests
phpunit:
stage: test
cache:
key: $CI_COMMIT_SHA
paths:
- vendor/
artifacts:
reports:
junit: clover.xml
script:
- docker-php-ext-enable xdebug
- vendor/bin/phpunit-tests 90