forked from PartBerlin/AdvLayNav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (33 loc) · 2.77 KB
/
.travis.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
dist: trusty
language: php
sudo: false
php:
- 5.6
- 7.0
env:
global:
- secure: "DCvVwJnoZXUdbZpHD77EyL002dFJsTxE0WgcslY09mkffhWFTjc3pRKdUb25prAhwbkAJo5Pb6FS6GfqJmEJAs0R5mFBdvif0y9TCvrhy+5kpbnnnUJuQfK6dZ6VOPGfqtvGm0MENDtndr5dhyGHbZ9DSz3WBZIuieLdr/HKOS6MVKO9iIFLVn5ttIbpauwbAdAnHdIoyUSW7qqnbTIJsou9Yw3HbpSwKK2LtecqXVUh0Yu6n3YwpNjOBjvQ724u1tw6B4iKNWn5TCZBrYEYKA/knefSgw99ptEQIznDg42TlBp2Knqc9jluwtjxrbVwwA/0+pzGJ6ZI/lQ74akk6Cn41sr91dSO5eEqR8iL27OALCxpO0z/avI3PxBAC/btbEGTDCwMSXtzpHJ216o+p5Cb21qaDKy8PORo9XE7elInQK22Se04VhLICySCJ49sOCYRiXUISCbZzbLzuapDz5SaEEKm3gxdsfkeSE6L8dseyvie+zVRaG1C9dqlpnD8x/UclNOsT2F5vCrrE1Sk76IG/QHdy5naVX/eYyQo+0uIeFL3sD4S340XgxaXscHE8Dx9i0YnFSIlbk0yLvdVpV9/oG7QSuOfoBN2Ex28UCOUAXXq9kYimt9yXjcGcGarQqOPh9rPgHi93OYlqMphlVga8sg+C00+PRtbLvrPxJY="
- secure: "sTmBL5CDHEmEmy7JSlbUmrM+EsT1m5iTsYUaScPAqYofn3T4vxyXQ3BlXsbOMrLxI33S+yoB54FWgOEa67nC4RTO20U6O3H9QjKOMdgMVTDmeoFohVOyOJSl3BXKPHOxTFf8/QPsz4sUziIftwObmFfrRD9nEPiMDF+YtI9TJW/tpEPiqjhYikz7OIPGD8d2z3RhHFHKdA41F66e0UZlPjR1+DNONiFy9xXHI4/rVDzlHQJFL1rVwPEMKDLznQRaz8DTl0+vqYCYdBwEZz3M6zekSpbFMUgdMSc8qLil+hVL7Rpgi1Rf4i7SRMKB0zI96gTwHFCD5c8cZgqKFx6I+hL7+0gQzCeoBG1Lm9KdtkzEBU4+boEOOkCy876xkOyP86J9HWfRxB7uQh6Ec2r4gSD9elTfiXiOZN+kwFhOHB6ypSq7qnFZ+YLo38SEAM2PysvE9sfOyohgg8eqccGBRiDgVWiSTguu3GekZxtSiUkvQUTkTmq2aHvNHEtD7pHKoCgNNn8PmOH+3ReMx+oQ7By2XJZlXCH7/vlhFhnxlPP++iLeFcpOu9tTRdzBKJ9TgL6PkDdpsmLFUAHKPl1KKugsWT+rYxYIlHvnc47CaH4210MfJKVKrNDDAL/jIpYG68IU3ecq+dkESsJHl6I3Y9HXlQdQD44MdmNz5hQrY4o="
matrix:
- TEST_SUITE=unit
- TEST_SUITE=static
matrix:
exclude:
- php: 7.0
env: TEST_SUITE=static
cache:
directories:
- $HOME/.composer/cache
install:
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then echo '{\"http-basic\":{\"repo.magento.com\":{\"username\":\"${MAGENTO_USERNAME}\",\"password\":\"${MAGENTO_PASSWORD}\"}}}' > auth.json; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then composer install --prefer-dist; fi"
- sh -c "if [ '$TEST_SUITE' = 'static' ]; then npm install; fi"
script:
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then php vendor/bin/phpdoc run -d Block,Helper,Model,Observer -t build/doc; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then php vendor/bin/phpcs; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then php vendor/bin/phpmd Block/,Helper/,Model/,Observer/,Test/ text cleancode,codesize,controversial,design,naming,unusedcode; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then php vendor/bin/phpcpd Block/ Helper/ Model/ Observer/ Test/; fi"
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then php vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi"
- sh -c "if [ '$TEST_SUITE' = 'static' ]; then ./node_modules/.bin/grunt ci; fi"
after_script:
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then php vendor/bin/coveralls; fi"