-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
50 lines (42 loc) · 1.38 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
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- LARAVEL="^5.8" COMPOSER_FLAGS="--prefer-lowest"
- LARAVEL="^5.8" COMPOSER_FLAGS=""
- LARAVEL="^6.0" COMPOSER_FLAGS="--prefer-lowest"
- LARAVEL="^6.0" COMPOSER_FLAGS=""
- LARAVEL="^7.0" COMPOSER_FLAGS="--prefer-lowest"
- LARAVEL="^7.0" COMPOSER_FLAGS=""
matrix:
exclude:
- php: 7.4
env: LARAVEL="^5.8" COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
env: LARAVEL="^6.0" COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
env: LARAVEL="^6.0" COMPOSER_FLAGS=""
- php: 7.1
env: LARAVEL="^7.0" COMPOSER_FLAGS="--prefer-lowest"
- php: 7.1
env: LARAVEL="^7.0" COMPOSER_FLAGS=""
allow_failures:
- php: 7.4
env: LARAVEL="^5.8" COMPOSER_FLAGS="--prefer-lowest"
- php: 7.4
env: LARAVEL="^6.0" COMPOSER_FLAGS="--prefer-lowest"
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- travis_retry composer require laravel/framework:${LARAVEL} --no-interaction --prefer-dist
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
script:
- XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- php ./vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover