forked from cybercog/laravel-ban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (20 loc) · 866 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
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
env:
global:
- setup=basic
before_script:
- composer config discard-changes true
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
- if [ $(phpenv version-name) = '7.3' ]; then composer require laravel/legacy-factories --dev; fi
- if [ $(phpenv version-name) = '7.4' ]; then composer require laravel/legacy-factories --dev; fi
- if [ $(phpenv version-name) = '8.0' ]; then composer require laravel/legacy-factories --dev; fi
script:
- ./vendor/bin/phpunit -c phpunit.xml.dist --verbose