-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (23 loc) · 1.01 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
language: php
cache:
directories:
- $HOME/.cache/pip
- $HOME/.composer/cache/files
php:
- 7.4
env:
- ILLUMINATE_VERSION=7.* PHPUNIT_VERSION=^8.5 COVERAGE=true
before_install:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini
- phpenv config-rm xdebug.ini
- composer global require hirak/prestissimo --update-no-dev
- composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update --prefer-dist
- composer require "orchestra/testbench:${ILLUMINATE_VERSION/5\./3\.}" --no-update --prefer-dist
- composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update --prefer-dist
install: travis_retry composer install --no-interaction --prefer-dist
before_script: phpenv config-add ~/xdebug.ini
script: vendor/bin/phpunit
after_success: sh -c "if [ ! -z ${COVERAGE+x} ]; then travis_retry php vendor/bin/php-coveralls; fi"
notifications:
email: false