forked from eBayEnter-zz-prise/RetailOrderManagement-SDK
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
83 lines (82 loc) · 2.61 KB
/
docker-compose.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
71
72
73
74
75
76
77
78
79
80
81
82
83
# Dockerized testing and analysis tools for developers
# ======================================================
#
# 1. Make sure you have docker set up.
# 2. Make sure you have fig installed.
# 3. Run `fig run --rm setup` to create necessary directories. It's safe to rerun this.
# 4. Run `fig run --rm "$test"`, where `$test` is the name of the test to run. For example, `fig run --rm phpunit`.
# 5. For advanced options, you can still pass commandline flags to the containers, like `fig run --rm phpcpd --help`.
#
# Some commands produce output on standard output.
# Other commands put files in the `build` directory.
setup:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
command: mkdir -p build/doc build/pdepend build/phpmd build/phpunit
composer:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
- ~/.composer/auth.json:/root/.composer/auth.json
entrypoint: composer
command: list
document:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: vendor/bin/phpdoc
command: -d src -t build/doc
pdepend:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: vendor/bin/pdepend
command: --jdepend-chart=build/pdepend-chart.svg
--overview-pyramid=build/pdepend-overview-pyramid.svg
src,tests
phpcpd:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: vendor/bin/phpcpd
command: --fuzzy --progress src tests
phpcs:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: vendor/bin/phpcs
command: -p --standard=PSR2 src tests
phplint:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
command: sh -c 'find src tests \( -name "*.php" -o -name "*.phtml" \) -print0 |
xargs -0 -n1 -P6 -- php -l > /dev/null && echo "no errors"'
phploc:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: vendor/bin/phploc
command: --count-tests --progress src tests
phpmd:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint:
- php
- -d
- date.timezone=UTC
- vendor/bin/phpmd
command: src,tests text phpmd.xml
phpunit:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
entrypoint: vendor/bin/phpunit
xmllint:
image: kojiromike/magento_tools
volumes:
- .:/srv/magento
command: sh -c 'find src tests \( -name "*.xml" -o -name "*.xsd" -o -name "*.xsl" \) -print0 |
xargs -0 -n1 -P6 -- xmllint --noout'