-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.travis.yml
37 lines (28 loc) · 961 Bytes
/
.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
language: php
sudo: false
cache:
directories:
- vendor
- $HOME/.composer/cache
php:
- 7.2
- 7.3
- 7.4
- 8.0
env:
global:
secure: UVvBxNf6tsDjCT6NFADBEpSH2Oeh5ikTh+RugVuW+gMhnF6cnapSO9YJE5RpVu8RjIPZInDiEyrFjufHvbLEdr/Zj9AMHJruDpKjxkIV9dnOre6z3pAF15DPTp5prD6xaJVyHHkLiFufR2E3QTVFSiwJNC9/LAmE8D5CIa6+RSs=
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- 'if [[ -n "$GH_TOKEN" ]]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;'
install:
- composer require php-coveralls/php-coveralls --no-update
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-dist --no-interaction --no-progress
script:
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- php vendor/bin/coveralls -v
- 'if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $TRAVIS_PHP_VERSION == "7.4" ]]; then sh generate-api.sh; fi;'
notifications:
email: false