forked from Cotya/magento-composer-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 1.58 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: php
php:
- hhvm
- 7.1
- 7.0
- 5.6
env:
- TEST_SUITE=Unit
- TEST_SUITE=Fullstack
matrix:
fast_finish: true
include:
- php: 5.6
env: TEST_SUITE=Static
- php: 7.0
env: COMPOSER_VERSION=beta
- php: 7.0
env: COMPOSER_VERSION=dev
allow_failures:
- env: TEST_SUITE=Static
- env: COMPOSER_VERSION=beta
- env: COMPOSER_VERSION=dev
sudo: false
cache:
directories:
- $HOME/.composer/cache
install:
- php ./tests/prepare_composer.php
- chmod +x ./composer.phar
- ./composer.phar --version
- ./composer.phar install -n --prefer-source
script:
- >
sh -c "if [ '$TEST_SUITE' = 'Unit' ] || [ '$TEST_SUITE' = 'Fullstack' ]; then
./vendor/bin/phpunit --coverage-clover=coverage.clover --testsuite=$TEST_SUITE;
fi"
- >
sh -c "if [ '$TEST_SUITE' = 'Static' ]; then
./vendor/bin/phpcs --standard=PSR2 ./src/;
./vendor/bin/phpcs --standard=PSR2 ./tests/MagentoHackathon;
fi"
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
notifications:
email:
recipients:
- flyingmana@googlemail.com
on_success: never
on_failure: always
webhooks:
urls:
- https://webhooks.gitter.im/e/c5ef1e9abfc452125de8
- https://webhooks.gitter.im/e/c15428595390b938ee38
- https://webhooks.gitter.im/e/5126f06d0f4f55230ee0
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false