-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
53 lines (41 loc) · 1.34 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
language: php
dist: trusty
sudo: false
group: deprecated-2017Q4
env:
global:
- SETUP=stable
php:
- 7.4
matrix:
fast_finish: true
include:
- php: 7.4
- php: 7.4
env: SETUP=lowest
cache:
directories:
- $HOME/.composer/cache
install:
- curl -s http://getcomposer.org/installer | php
- if [[ $SETUP = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi
- if [[ $SETUP = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi
- composer require php-coveralls/php-coveralls
before_script:
- phpenv config-rm xdebug.ini || true
- mkdir -p build/logs
# show some versions and env information
- php --version
- composer --version
script:
- php vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
after_success:
- travis_retry php vendor/bin/coveralls -v
- if [[ $SETUP = 'stable' ]]; then bash <(curl -s https://codecov.io/bash); fi
- if [[ $SETUP = 'stable' ]]; then travis_retry php vendor/bin/coveralls -v; fi
- php vendor/bin/codacycoverage clover build/logs/clover.xml
notifications:
email: false