-
-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy path.travis.yml
61 lines (55 loc) · 1.46 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
language: php
os:
- linux
php:
- 7.4
- 7.3
- 7.2
- 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: TEST_SUITE=Static
- php: 7.4
os: windows
- php: 7.4
env: COMPOSER_VERSION=dev
allow_failures:
- os: windows
- env: TEST_SUITE=Static
- env: COMPOSER_VERSION=beta
- env: COMPOSER_VERSION=dev
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:
- >
echo 'error_reporting = E_ALL & ~E_DEPRECATED' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- >
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:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false